SoAdaptiveThresholdingProcessing engine More...
#include <ImageViz/Engines/ImageSegmentation/Binarization/SoAdaptiveThresholdingProcessing.h>
The SoAdaptiveThresholdingProcessing engine computes a threshold depending on measure.
This module computes the threshold of a grayscale image, given a label image corresponding to the pre-segmentation of the original image. Instead of giving two fixed values for the thresholding, the user chooses two representative measures (e.g. the 10th and the 90th percentile of the histogram, predefined measures HISTOGRAM_QUANTILE10 and HISTOGRAM_QUANTILE90). The min and max threshold values are dynamically computed for each label and gives an individual thresholding on them.
computeMode | MODE_AUTO |
inObjectImage | NULL |
inGrayImage | NULL |
measureLow | NULL |
measureHigh | NULL |
SoAdaptiveThresholdingProcessing::SoAdaptiveThresholdingProcessing | ( | ) |
Constructor.
Select the compute Mode (2D or 3D or AUTO) Use enum ComputeMode.
Default is MODE_AUTO
The input grayscale image.
Default value is NULL. Supported types include: grayscale image.
The input label image.
Default value is NULL. Supported types include: binary label color image.
The measure attributes to customize measurement.
The measure defining the higher threshold.
Default value is NULL.
The measure defining the lower threshold.
Default value is NULL.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoAdaptiveThresholdingProcessing::outBinaryImage |
The output binary image.
Default value is NULL. Supported types include: binary image.