Class SoChessboardDistanceMapProcessing
- 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.mathematicalmorphology.distancemaps.SoChessboardDistanceMapProcessing
-
- All Implemented Interfaces:
SafeDisposable
public class SoChessboardDistanceMapProcessing extends SoImageVizEngine
SoChessboardDistanceMapProcessing
engine. TheSoChessboardDistanceMapProcessing
engine computes the chessboard distance transformation.This engine is based upon a recursive method and work in two iterations. It is used for particle segmentation, before a Watershed engine.
This engine calculates the distance function of a binary image onto a gray level image, as the sum of successive erosions. The output image is a 16-bits signed image.
In the output image , a voxel belonging to a particle , takes an intensity equal to the distance in voxel units to the boundary. For a rectangular grid the distance is defined as:
Where denotes the so called Chessboard distance:
-
-
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 SoSFEnum<SoImageVizEngine.ComputeModes>
computeMode
Select the compute Mode (2D or 3D or AUTO) .SoSFImageDataAdapter
inBinaryImage
The input binary image.SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter>
outMapImage
The output distance map 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 SoChessboardDistanceMapProcessing()
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
-
inBinaryImage
public final SoSFImageDataAdapter inBinaryImage
The input binary image. Default value is NULL. Supported types include: binary color image.
-
outMapImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outMapImage
The output distance map image. Default value is NULL. Supported types include: grayscale binary label color image.
-
-