Top  Previous  Next

Menu:   Processing > Morphology… > Basic->Contours  
Script:   contour  

Use this command to extract contours of objects in an image. The function is based on the morphological gradient which works by combining the original image with the results of Erosion
or Dilation. The way these images are combined depends on the Mode selected. The shape and size of the neighborhood pattern for the operation is selected with the Probe option.

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

Displays the input image frame number. If you want to perform the operation on another image, type or select the corresponding value.  

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.  
Select this check box to watch the Preview of the output image.  
Lets you select the mode in which the function operates:  
Select Internal to extract the internal contours of objects. The eroded image will be subtracted from the original one.  
Select External to extract the external contours of objects. The original image will be subtracted from the dilated one.  
Select Both to extract both the internal and external contours of objects. The eroded image will be subtracted from the dilated one.  
Lets you chose the size and shape of the kernel used in the operation. Probe elements with check marks are active, empty elements are ignored. Choose among the following most usable kernels:  
1x3 vertical bar
3x1 horizontal bar
3x3 cross
3x3 diagonal cross
3x3 square
5x5 circle