SoThresholdingProcessing engine More...
#include <ImageViz/Engines/ImageSegmentation/Binarization/SoThresholdingProcessing.h>
Public Member Functions | |
SoThresholdingProcessing () | |
Public Attributes | |
SoSFEnum | computeMode |
SoSFImageDataAdapter | inImage |
SoSFVec2f | thresholdLevel |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outBinaryImage |
The SoThresholdingProcessing engine transforms a grayscale image into a binary image.
For an introduction, see section Binarization.
The SoThresholdingProcessing engine thresholds a grey level image. In the output binary image, all pixels with an initial grey level value lying between the two bounds are set to 1, all the other pixels are set to 0.
The SoThresholdingProcessing engine produces a binary image between two levels and . Threshold with 2 bounds is the default, but a threshold with a single bound may be achieved by setting or to the values 0 or 255, respectively. The definition is:
Thresholding a grayscale image
SoAutoThresholdingProcessing, SoColorThresholdingProcessing.
computeMode | MODE_AUTO |
inImage | NULL |
thresholdLevel | 128.0f 255.0f |
InteractiveThresholding, OverlayDisplay, ThresholdingSegmentation, PoreAnalysis, StandardWorkflow, WorkflowWithRoi
SoThresholdingProcessing::SoThresholdingProcessing | ( | ) |
Constructor.
Select the compute Mode (2D or 3D or AUTO) Use enum ComputeMode.
Default is MODE_AUTO
The input image.
Default value is NULL. Supported types include: grayscale binary label color image.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoThresholdingProcessing::outBinaryImage |
The output binary image.
Default value is NULL. Supported types include: binary image.
The low and high threshold levels.
Default value is SbVec2f(128.0f,255.0f).