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
SoMorphologicalGradientProcessing
engine. TheSoMorphologicalGradientProcessing
engine 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
modes
allow to enhance edges inside (Internal) or outside (External) of particles.The SoMorphologicalGradientProcessing
engine: (each with label image in overlay):
1: gray input image, 2: internal morphological gradient and 3: external morphological gradient.This engine uses
SoErosionDiskProcessing2d
orSoDilationDiskProcessing2d
in 2D case andSoErosionBallProcessing3d
orSoDilationBallProcessing3d
in 3D case. Two additional parameters are also provided :Precision
of the computation (Faster or Precise) andhalf-kernel
size for morphological operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoMorphologicalGradientProcessing.GradientModes
static class
SoMorphologicalGradientProcessing.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>
computeMode
Select the compute Mode (2D or 3D or AUTO) .SoSFInt32
elementSize
The half size of the structuring element.SoSFEnum<SoMorphologicalGradientProcessing.GradientModes>
gradientMode
Select the computation mode for morphological gradient.SoSFImageDataAdapter
inImage
The input image.SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter>
outImage
The output image.SoSFEnum<SoMorphologicalGradientProcessing.PrecisionModes>
precisionMode
Select 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.
-
-