SoGroupCloseLabelslProcessing2d engine More...
#include <ImageViz/Engines/ImageSegmentation/Labeling/SoGroupCloseLabelslProcessing2d.h>
Public Member Functions | |
SoGroupCloseLabelslProcessing2d () | |
Public Attributes | |
SoSFImageDataAdapter | inObjectImage |
SoSFFloat | maxDistance |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outLabelImage |
The SoGroupCloseLabelslProcessing2d groups the objects of the input image according to the distance between them. Knowing the grouping distance, objects will be given the same label if they are separated by this distance or less
Label grouping on a binary image
The figure above shows the results of the SoLabelingProcessing and SoGroupCloseLabelslProcessing2d engines on a binary image. The SoLabelingProcessing engine gives a label number to each cell. The SoGroupCloseLabelslProcessing2d will associate the same label number to each cell of a group, a group being defined by the distance between the separated particles. On the example above the chosen distance is 20 pixels, therefore cells separated by 20 pixels or less will be recognised as belonging to the same group.
inObjectImage | NULL |
maxDistance | 3.0f |
SoGroupCloseLabelslProcessing2d::SoGroupCloseLabelslProcessing2d | ( | ) |
Constructor.
The input binary or label image.
Default value is NULL. Supported types include: binary label color image.
The maximal distance for grouping objects.
Default value is 3.0f.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoGroupCloseLabelslProcessing2d::outLabelImage |
The output image.
Default value is NULL. Supported types include: label image.