ImLab Scilab Function
Last update :
imlabel - image labelling
Calling Sequence
-
[label_image,nb_objects] = imlabel(image_data,connectivity[,vertical_parsing])
Parameters
-
image_data
: binary image with background value equal to 0
-
connectivity
: connectivity value to use in labelling (4 or 8)
-
label_image
: image after labelling operation
-
vertical_parsing
: set to 1 to parse the picture vertically instead of horinzontally (default : 0)
Description
This function labels all regions in an image using connectivity defined by the user.
Examples
-Image before labelling :
0000000
0011100
0000000
0001100
0000000
-Image after labelling :
0000000
0011100
0000000
0002200
0000000