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.Neighborhood3ds
Inventor.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, onProgress
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoThresholdingProcessing()
Constructor.
|
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
copy, getByName, getOutput, getOutputName
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public 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 January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com