Classify  
Top  Previous  Next

 
Menu:   Processing > Morphology… > Connectivity->Classify  
Script:   classify  
 
Use this command to classify objects in a binary image
based on a selected geometrical parameter. The function works by performing blob measurements on each object and sorting the objects into a user-defined number of classes, the range of possible parameter's values to be evenly divided among the classes. Each pixel of a given object then is assigned a value equal to the class ID of the object. Note that the function modifies the original phase information that the input image might contain.

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.  
 
Parameter
 
Lets you choose the parameter for classification. Use one of the following parameters:  
 
AngleMajor
the angle between the major axis of the object and X-axis
Pixels
the number of pixels in an object
Area
the area of an object in calibrated units
AreaBox
the area of the bounding box of an object in calibrated units
DCircle
the diameter of the equivalent circle in caliblrated units
AxisMajor
the major axis of the equivalent ellipse in calibrated units
AxisMinor
the minor axis of the equivalent ellipse in calibrated units
Perim
the perimeter of an object in the calibrated units
StartX
the X-coordinate of the starting point of an object in pixels
StartY
the Y-coordinate of the starting point of an object in pixels
EndX
the X-coordinate of the endpoint of an object in pixels
EndY
the Y-coordinate of the endpoint of an object in pixels
CenterX
the X-coordinate of object's centroid in calibrated units
CenterY
the Y-coordinate of object's centroid in calibrated units
Aspect
the aspect ratio of the major axis divided by the minor axis
Circularity
the circular form-factor of an object
Ellipticity
the elliptical form-factor of an object
Class
the class ID of an object
Count
the ordinal number of a curve feature in the current session
FeretX
the length of the horizontal projection of an object in calibrated units
FeretY
the length of the vertical projection of an object in calibrated units
MaxX
the maximum X coordinate of an object in calibrated units
MinX
the minimum X coordinate of an object in calibrated units
MaxY
the maximum Y coordinate of an object in calibrated units
MinY
the minimum Y coordinate of an object in calibrated units
YatMaxX
the associated Y-value at the maximum X coordinate of an object
YatMinX
the associated Y-value at the minimum X coordinate of an object
XatMaxY
the associated X-value at the maximum Y coordinate of an object
XatMinY
the associated X-value at the minimum Y coordinate of an object
 
 
Classes
 
Lets you select the number of classes.