Class SoGradientLocalMaximaProcessing2d
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.engines.SoEngine
-
- com.openinventor.imageviz.engines.SoImageVizEngine
-
- com.openinventor.imageviz.engines.edgedetection.edgemarking.SoGradientLocalMaximaProcessing2d
-
- All Implemented Interfaces:
SafeDisposable
public class SoGradientLocalMaximaProcessing2d extends SoImageVizEngine
SoGradientLocalMaximaProcessing2d
engine. TheSoGradientLocalMaximaProcessing2d
engine suppresses the non-local maxima of the gradient amplitude.For an introduction, see:
- section Edge Detection
- Introduction to Edge Marking
The
SoGradientLocalMaximaProcessing2d
engine suppresses the non-local maxima of the gradient amplitude. For each pixel of gradient image, gray level values within the neighborhood in the direction of the gradient are computed (given by X and Y gradients). If this value is greater than all of its neighbors, it is kept, otherwise it is set to 0. This module eliminates some noise effects. It is very useful after applying the moduleSoGradientOperatorProcessing2d
. The output edges are one pixel thickness edges. It is then possible to perform aSoHysteresisThresholdingProcessing
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFImageDataAdapter
inAmplitudeImage
The gradient amplitude input image.SoSFImageDataAdapter
inGradientXImage
The input X-gradient image.SoSFImageDataAdapter
inGradientYImage
The input Y-gradient image.SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter>
outImage
The output image.-
Fields inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
onBegin, onEnd, onProgress
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoGradientLocalMaximaProcessing2d()
Constructor.
-
Method Summary
-
Methods inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
-
Methods inherited from class com.openinventor.inventor.engines.SoEngine
copy, getByName, getOutput, getOutputName
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
inGradientXImage
public final SoSFImageDataAdapter inGradientXImage
The input X-gradient image. Default value is NULL. Supported types include: grayscale color image.
-
inGradientYImage
public final SoSFImageDataAdapter inGradientYImage
The input Y-gradient image. Default value is NULL. Supported types include: grayscale color image.
-
inAmplitudeImage
public final SoSFImageDataAdapter inAmplitudeImage
The gradient amplitude input image. Default value is NULL. Supported types include: grayscale binary label color image.
-
outImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outImage
The output image. Default value is NULL. Supported types include: grayscale binary label color image.
-
-