public class SoLocalAdaptiveThresholdProcessing extends SoImageVizEngine
SoLocalAdaptiveThresholdProcessing engine
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.
See also:
: SoAdaptiveThresholdingProcessing, SoAutoThresholdingProcessing.
File format/default:
LocalAdaptiveThresholdProcessing {
| computeMode | MODE_AUTO |
| kernelSize | 30 30 30 |
| inImage | NULL |
| threshold | 1.0f |
| comparisonCriterion | GREATER_OR_EQUAL |
| thresholdMode | MULTIPLICATIVE |
Library references: local_adaptive_threshold2d local_adaptive_threshold3d
| Modifier and Type | Class and Description |
|---|---|
static class |
SoLocalAdaptiveThresholdProcessing.ComparisonCriterions |
static class |
SoLocalAdaptiveThresholdProcessing.ThresholdModes |
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3dsInventor.ConstructorCommand| Modifier and Type | Field and Description |
|---|---|
static int |
ADDITIVE
Deprecated.
|
SoSFEnum<SoLocalAdaptiveThresholdProcessing.ComparisonCriterions> |
comparisonCriterion
Select the comparison test to perform between image and value.
|
SoSFEnum<SoImageVizEngine.ComputeModes> |
computeMode
Select the compute Mode (2D or 3D or AUTO) .
|
static int |
GREATER_OR_EQUAL
Deprecated.
|
SoSFImageDataAdapter |
inImage
Input image.
|
SoSFVec3i32 |
kernelSize
The kernel size in each direction for computing the mean intensity.
|
static int |
LESS_OR_EQUAL
Deprecated.
|
static int |
MULTIPLICATIVE
Deprecated.
|
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outBinaryImage
The output binary image.
|
SoSFFloat |
threshold
Enter a floating value Default value is 1.0f.
|
SoSFEnum<SoLocalAdaptiveThresholdProcessing.ThresholdModes> |
thresholdMode
Local threshold mode .
|
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgressVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoLocalAdaptiveThresholdProcessing()
Constructor.
|
abortEvaluate, isEvaluating, startEvaluate, waitEvaluatecopy, getByName, getOutput, getOutputNamecopyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsdispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touchgetAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads@Deprecated public static final int GREATER_OR_EQUAL
SoLocalAdaptiveThresholdProcessing.ComparisonCriterions.GREATER_OR_EQUAL instead.@Deprecated public static final int LESS_OR_EQUAL
SoLocalAdaptiveThresholdProcessing.ComparisonCriterions.LESS_OR_EQUAL instead.@Deprecated public static final int MULTIPLICATIVE
SoLocalAdaptiveThresholdProcessing.ThresholdModes.MULTIPLICATIVE instead.@Deprecated public static final int ADDITIVE
SoLocalAdaptiveThresholdProcessing.ThresholdModes.ADDITIVE instead.public final SoSFEnum<SoImageVizEngine.ComputeModes> computeMode
public final SoSFVec3i32 kernelSize
SbVec3i32(30,30,30)public final SoSFImageDataAdapter inImage
public final SoSFFloat threshold
public final SoSFEnum<SoLocalAdaptiveThresholdProcessing.ComparisonCriterions> comparisonCriterion
public final SoSFEnum<SoLocalAdaptiveThresholdProcessing.ThresholdModes> thresholdMode
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outBinaryImage
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com