Свойство | Тип | Описание | |
---|---|---|---|
colors | int[] |
Метод | Описание | |
---|---|---|
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 | |
Результат | void |
public static interesting_colors ( int x ) : int | ||
x | int | |
Результат | int |
public static label_components ( Intarray &image, bool four_connected = false ) : int | ||
image | Intarray | |
four_connected | bool | |
Результат | int |
public static propagate_labels ( Intarray &image ) : void | ||
image | Intarray | |
Результат | void |
public static propagate_labels_to ( Intarray &target, Intarray seed ) : void | ||
target | Intarray | |
seed | Intarray | |
Результат | void |
public static remove_dontcares ( Intarray &image ) : void | ||
image | Intarray | |
Результат | void |
public static renumber_labels ( Intarray image, int start = 1 ) : int | ||
image | Intarray | |
start | int | |
Результат | int |
public static simple_recolor ( Intarray image ) : void | ||
image | Intarray | |
Результат | void |