SoLocalAdaptiveThresholdProcessing engine More...
#include <ImageViz/Engines/ImageSegmentation/Binarization/SoLocalAdaptiveThresholdProcessing.h>
Public Types | |
enum | ComparisonCriterion { GREATER_OR_EQUAL = 0, LESS_OR_EQUAL = 1 } |
enum | ThresholdMode { MULTIPLICATIVE = 0, ADDITIVE = 1 } |
Public Member Functions | |
SoLocalAdaptiveThresholdProcessing () | |
Public Attributes | |
SoSFEnum | computeMode |
SoSFVec3i32 | kernelSize |
SoSFImageDataAdapter | inImage |
SoSFFloat | threshold |
SoSFEnum | comparisonCriterion |
SoSFEnum | thresholdMode |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outBinaryImage |
The SoLocalAdaptiveThresholdProcessing engine performs a binarization of a grayscale image based on the mean intensity of a sliding window centered around each voxel.
Each voxel value is compared to the mean intensity of its local window. The corresponding voxel in the binary output depends on the threshold value, mode, and comparison criterion.
In additive mode with comparison criterion set to GREATER_OR_EQUAL, the output is set to 1 if .
In multiplicative mode with comparison criterion set to GREATER_OR_EQUAL, the output is set to 1 if .
For example to select voxels lower than 90% of their local mean, set threshold field to 0.9, comparisonCriterion field to LESS_OR_EQUAL and thresholdMode field to MULTIPLICATIVE.
: SoAdaptiveThresholdingProcessing, SoAutoThresholdingProcessing.
computeMode | MODE_AUTO |
kernelSize | 30 30 30 |
inImage | NULL |
threshold | 1.0f |
comparisonCriterion | GREATER_OR_EQUAL |
thresholdMode | MULTIPLICATIVE |
SoLocalAdaptiveThresholdProcessing::SoLocalAdaptiveThresholdProcessing | ( | ) |
Constructor.
Select the comparison test to perform between image and value.
Use enum ComparisonCriterion. Default is GREATER_OR_EQUAL
Select the compute Mode (2D or 3D or AUTO) Use enum ComputeMode.
Default is MODE_AUTO
Input image.
The type of image can be integer or float Default value is NULL. Supported types include: grayscale image.
The kernel size in each direction for computing the mean intensity.
Default value is SbVec3i32(30,30,30)
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoLocalAdaptiveThresholdProcessing::outBinaryImage |
The output binary image.
Default value is NULL. Supported types include: binary image.
Enter a floating value Default value is 1.0f.
Local threshold mode Use enum ThresholdMode.
Default is MULTIPLICATIVE