SoExpandLabelsProcessing engine More...
#include <ImageViz/Engines/ImageSegmentation/SeparatingAndFilling/SoExpandLabelsProcessing.h>
Public Types | |
enum | ExpandMode { REGIONS = 0, OBJECTS = 1 } |
Public Member Functions | |
SoExpandLabelsProcessing () | |
Public Attributes | |
SoSFEnum | computeMode |
SoSFEnum | neighborhood3d |
SoSFEnum | expandMode |
SoSFImageDataAdapter | inLabelImage |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outLabelImage |
The SoExpandLabelsProcessing engine performs an label expansion of an image.
For an introduction, see:
The label expansion cans be performed either with a REGIONS mode or an OBJECTS mode.
REGIONS mode
The engine performs an iterative dilation of a label image. It stops the process when the complete image is covered.
OBJECTS mode
The engine performs a constrained dilation of a label image. Its first aim is to expand labels obtained by using an SoMarkerBasedWatershedProcessing engine with CATCHMENT mode, so that all black pixels of the boundaries are filled with the value of the most present label among the height neighbors.
Figure 2: Example of label expansion with OBJECTS mode applied to the result of SoMarkerBasedWatershedProcessing engine with CATCHMENT mode
SoMarkerBasedWatershedProcessing, SoGrayscaleResconstructionProcessing.
computeMode | MODE_AUTO |
neighborhood3d | CONNECTIVITY_26 |
expandMode | OBJECTS |
inLabelImage | NULL |
SoExpandLabelsProcessing::SoExpandLabelsProcessing | ( | ) |
Constructor.
Select the compute Mode (2D or 3D or AUTO) Use enum ComputeMode.
Default is MODE_AUTO
Select the type of expansion to perform.
Use enum ExpandMode. Default is OBJECTS
The input label image.
Default value is NULL. Supported types include: label color image.
In 3D configuration (see computeMode), the neighborhood connectivity defines the connectivity considered for processing adjacent voxels.
Use enum Neighborhood3d. Default is CONNECTIVITY_26.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoExpandLabelsProcessing::outLabelImage |
The output label image.
Default value is NULL. Supported types include: label image.