SoAddObjectToLabelProcessing engine More...
#include <ImageViz/Engines/ImageSegmentation/Labeling/SoAddObjectToLabelProcessing.h>
Public Member Functions | |
SoAddObjectToLabelProcessing () | |
Public Attributes | |
SoSFImageDataAdapter | inBinaryImage |
SoSFImageDataAdapter | inLabelImage |
SoSFInt32 | labelValue |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outLabelImage |
The SoAddObjectToLabelProcessing engine inserts a marker to a label image.
This engine inserts a marker (described in a binary image) to a label image. The result is a copy of the label image overlapped with the marker. The pixels belonging to the marker are set to the value defined in labelValue field.
A label image may be 16 or 32 bits per pixel. By default it is 2 bytes per pixel, but if the number of labels exceeds 65,535 then the output image is automatically converted to 4 bytes and then can manage more than 2 billion labels.
Figure 1: Binary image describing the marker to add.
Figure 2: Label image in which the marker is inserted.
Figure 3: Result image with added marker.
SoMarkerBasedWatershedProcessing, SoGrayscaleResconstructionProcessing.
inBinaryImage | NULL |
inLabelImage | NULL |
labelValue | 1 |
SoAddObjectToLabelProcessing::SoAddObjectToLabelProcessing | ( | ) |
Constructor.
The input binary image.
Default value is NULL. Supported types include: binary color image.
The input label image.
Default value is NULL. Supported types include: label color image.
The label value to assign.
Default value is 1.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoAddObjectToLabelProcessing::outLabelImage |
The output label image.
Default value is NULL. Supported types include: label image.