SoThresholdingByCriterionProcessing engine More...
#include <ImageViz/Engines/ImageSegmentation/Binarization/SoThresholdingByCriterionProcessing.h>
Public Types | |
enum | ComparisonCriterion { LESS_THAN = 0, LESS_THAN_OR_EQUAL_TO = 1, EQUAL_TO = 2, GREATER_THAN_OR_EQUAL_TO = 3, GREATER_THAN = 4, NOT_EQUAL_TO = 5 } |
Public Member Functions | |
SoThresholdingByCriterionProcessing () | |
Public Attributes | |
SoSFImageDataAdapter | inGrayImage |
SoSFEnum | comparisonCriterion |
SoSFFloat | comparisonValue |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outBinaryImage |
The SoThresholdingByCriterionProcessing engine performs a criterion based thresholding on an image. For each voxel, if the input value meets the specified criterion, then the output is set to 1, otherwise it is set to 0.
inGrayImage | NULL |
comparisonCriterion | LESS_THAN |
comparisonValue | 0.0f |
SoThresholdingByCriterionProcessing::SoThresholdingByCriterionProcessing | ( | ) |
Constructor.
Criterion of comparison.
Use enum ComparisonCriterion. Default is LESS_THAN
Threshold level.
Default value is 0.0f.
Input grey level image.
Default value is NULL. Supported types include: grayscale binary label image.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoThresholdingByCriterionProcessing::outBinaryImage |
The output binary image.
Default value is NULL. Supported types include: binary image.