Property | Type | Description | |
---|---|---|---|
colors | int[] |
Method | Description | |
---|---|---|
bounding_boxes ( Narray |
Compute the bounding boxes for the pixels in the image.
|
|
dontcare ( int x ) : bool | ||
interesting_colors ( int x ) : int | ||
label_components ( Intarray &image, bool four_connected = false ) : int |
Label the connected components of an image.
|
|
propagate_labels ( Intarray &image ) : void |
Propagate labels across the entire image from a set of non-zero seeds.
|
|
propagate_labels_to ( Intarray &target, Intarray seed ) : void | ||
remove_dontcares ( Intarray &image ) : void | ||
renumber_labels ( Intarray image, int start = 1 ) : int |
Renumber the non-zero pixels in an image to start with pixel value start. The numerical order of pixels is preserved.
|
|
simple_recolor ( Intarray image ) : void |
public static bounding_boxes ( Narray |
||
result | Narray |
|
image | Intarray | |
return | void |
public static interesting_colors ( int x ) : int | ||
x | int | |
return | int |
public static label_components ( Intarray &image, bool four_connected = false ) : int | ||
image | Intarray | |
four_connected | bool | |
return | int |
public static propagate_labels ( Intarray &image ) : void | ||
image | Intarray | |
return | void |
public static propagate_labels_to ( Intarray &target, Intarray seed ) : void | ||
target | Intarray | |
seed | Intarray | |
return | void |
public static remove_dontcares ( Intarray &image ) : void | ||
image | Intarray | |
return | void |
public static renumber_labels ( Intarray image, int start = 1 ) : int | ||
image | Intarray | |
start | int | |
return | int |
public static simple_recolor ( Intarray image ) : void | ||
image | Intarray | |
return | void |