public class SoThresholdingProcessing extends SoImageVizEngine
SoThresholdingProcessing engine
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:
See also:
SoAutoThresholdingProcessing, SoColorThresholdingProcessing.
File format/default:
ThresholdingProcessing {
| computeMode | MODE_AUTO |
| inImage | NULL |
| thresholdLevel | 128.0f 255.0f |
Library references: threshold
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3dsInventor.ConstructorCommand| Modifier and Type | Field and Description |
|---|---|
SoSFEnum<SoImageVizEngine.ComputeModes> |
computeMode
Select the compute Mode (2D or 3D or AUTO) .
|
SoSFImageDataAdapter |
inImage
The input image.
|
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outBinaryImage
The output binary image.
|
SoSFVec2f |
thresholdLevel
The low and high threshold levels.
|
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgressVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoThresholdingProcessing()
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, stopInternalThreadspublic final SoSFEnum<SoImageVizEngine.ComputeModes> computeMode
public final SoSFImageDataAdapter inImage
public final SoSFVec2f thresholdLevel
SbVec2f(128.0f,255.0f).public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outBinaryImage
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com