C# Class Ocronet.Dynamic.ImgLib.ImgLabels

Exibir arquivo Open project: nickun/OCRonet

Public Properties

Property Type Description
colors int[]

Public Methods

Method Description
bounding_boxes ( Narray &result, Intarray image ) : void

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

Method Details

bounding_boxes() public static method

Compute the bounding boxes for the pixels in the image.
public static bounding_boxes ( Narray &result, Intarray image ) : void
result Narray
image Intarray
return void

dontcare() public static method

public static dontcare ( int x ) : bool
x int
return bool

interesting_colors() public static method

public static interesting_colors ( int x ) : int
x int
return int

label_components() public static method

Label the connected components of an image.
public static label_components ( Intarray &image, bool four_connected = false ) : int
image Intarray
four_connected bool
return int

propagate_labels() public static method

Propagate labels across the entire image from a set of non-zero seeds.
public static propagate_labels ( Intarray &image ) : void
image Intarray
return void

propagate_labels_to() public static method

public static propagate_labels_to ( Intarray &target, Intarray seed ) : void
target Intarray
seed Intarray
return void

remove_dontcares() public static method

public static remove_dontcares ( Intarray &image ) : void
image Intarray
return void

renumber_labels() public static method

Renumber the non-zero pixels in an image to start with pixel value start. The numerical order of pixels is preserved.
public static renumber_labels ( Intarray image, int start = 1 ) : int
image Intarray
start int
return int

simple_recolor() public static method

public static simple_recolor ( Intarray image ) : void
image Intarray
return void

Property Details

colors public_oe static_oe property

public static int[] colors
return int[]