Class SoMorphologicalGradientProcessing
- 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.gradient.SoMorphologicalGradientProcessing
-
- All Implemented Interfaces:
SafeDisposable
public class SoMorphologicalGradientProcessing extends SoImageVizEngine
SoMorphologicalGradientProcessingengine. TheSoMorphologicalGradientProcessingengine emphasizes the edges of the objects using morphological operations.For an introduction, see:
- section Morphology
- section Edge Detection
- Introduction to Gradient
This engine emphasizes the edges of the objects using morphological operations. Two
modesallow to enhance edges inside (Internal) or outside (External) of particles.


The SoMorphologicalGradientProcessingengine: (each with label image in overlay):
1: gray input image, 2: internal morphological gradient and 3: external morphological gradient.This engine uses
SoErosionDiskProcessing2dorSoDilationDiskProcessing2din 2D case andSoErosionBallProcessing3dorSoDilationBallProcessing3din 3D case. Two additional parameters are also provided :Precisionof the computation (Faster or Precise) andhalf-kernelsize for morphological operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSoMorphologicalGradientProcessing.GradientModesstatic classSoMorphologicalGradientProcessing.PrecisionModes-
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 SoSFEnum<SoImageVizEngine.ComputeModes>computeModeSelect the compute Mode (2D or 3D or AUTO) .SoSFInt32elementSizeThe half size of the structuring element.SoSFEnum<SoMorphologicalGradientProcessing.GradientModes>gradientModeSelect the computation mode for morphological gradient.SoSFImageDataAdapterinImageThe input image.SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter>outImageThe output image.SoSFEnum<SoMorphologicalGradientProcessing.PrecisionModes>precisionModeSelect the precision for computation method.-
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 SoMorphologicalGradientProcessing()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
-
computeMode
public final SoSFEnum<SoImageVizEngine.ComputeModes> computeMode
Select the compute Mode (2D or 3D or AUTO) . Default is MODE_AUTO
-
inImage
public final SoSFImageDataAdapter inImage
The input image. Default value is NULL. Supported types include: grayscale binary label color image.
-
gradientMode
public final SoSFEnum<SoMorphologicalGradientProcessing.GradientModes> gradientMode
Select the computation mode for morphological gradient. . Default is INTERNAL
-
precisionMode
public final SoSFEnum<SoMorphologicalGradientProcessing.PrecisionModes> precisionMode
Select the precision for computation method. . Default is FASTER
-
elementSize
public final SoSFInt32 elementSize
The half size of the structuring element. A structuring element always has an odd side length (3x3, 5x5, etc) which is defined by 2 * elementSize + 1. Default value is 3.
-
outImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outImage
The output image. Default value is NULL. Supported types include: grayscale binary label color image.
-
-