Label  
Top  Previous  Next

 
Menu:   Processing > Morphology… > Connectivity->Label  
Script:   label  
 
Use this function to label or erase an object in a multiphase image
. by indicating coordinates of a pixel belonging to the object. The function works by assigning a selected index value to pixels belonging to the same connected group of pixels. Two types of neighborhood can be selected for the operation.

If you choose this command, the following options will become available:

Input
 
Displays the input image frame number. If you want to process another image, type or select the corresponding value.  

Output
 
Displays the number of the frame in which the output image will be created. Depending on the Preferences. ImageWarp will set it either to the first available value or to the Input frame number. Type or select another value if you want the output image to be created in a different frame.  
 
Preview
 
Select this check box to watch the Preview of the output image.  
 
X, Y
 
Lets you specify the coordinates of the pixel belonging to an object to be labeled. The coordinates are given in non-calibrated units relative to the upper left corner of the image.  
 
Index
 
Lets you choose the index to be assigned to pixels that belong to the same blob (connected group of pixels) as the selected pixel. If this value is set to zero, the object will be erased.  
 
Connect
 
Lets you choose the neighborhood for connectivity analysis.  
 
Select 4-connect to use the "city block" neighborhood. The pixels connected diagonally will be considered belonging to different objects.  
Select 8 connect to use the "chess board' neighborhood. Any interconnected pixels will be considered belonging to the same object.