public class SoGrayscaleResconstructionProcessing extends SoImageVizEngine
SoGrayscaleResconstructionProcessing
engine
The SoGrayscaleResconstructionProcessing
engine removes the light points in a dark image (case Dilation) or the dark points in a light image (case Erosion).
It performs a numerical reconstruction from a grayscale marker image into the grayscale input image.
Case Dilation
This case of use removes the light points in a dark image.
At each step the marker image is dilated by a structuring element of size 1. This algorithm is based on a recursive method whereby the minimum of the dilated image and the mask image is retained and used as the marker image at the next step. This operation is repeated until stability. The number of iterations depends on the input image and the marker image. As shown in the figure 1, peaks and ridges are levelled down, which results in a much more homogeneous output image.
Case Erosion
This case of use removes the dark points in a light image.
At each step the marker image is eroded by a structuring element of size 1. This algorithm is based on a recursive method whereby the maximum of the eroded image and the mask image is retained and used as the marker image at the next step. This operation is repeated until stability. The number of iterations depends on the input image and the marker image. As shown in the figure 2, the valleys are levelled up, which results in a much more homogeneous output image.
This algorithm is used by the
SoHExtremaProcessing
engine.
See also:
SoHExtremaProcessing
, SoMarkerBasedWatershedProcessing
.
File format/default:
GrayscaleResconstructionProcessing {
computeMode | MODE_AUTO |
neighborhood3d | CONNECTIVITY_26 |
reconstructMode | EROSION |
inMaskImage | NULL |
inMarkerImage | NULL |
Library references: dualreconstruct numreconstruct
Modifier and Type | Class and Description |
---|---|
static class |
SoGrayscaleResconstructionProcessing.ReconstructModes |
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) .
|
static int |
DILATION
Deprecated.
|
static int |
EROSION
Deprecated.
|
SoSFImageDataAdapter |
inMarkerImage
The input grayscale marker image containing seeds for reconstruction.
|
SoSFImageDataAdapter |
inMaskImage
The input grayscale mask image constraining reconstruction.
|
SoSFEnum<SoImageVizEngine.Neighborhood3ds> |
neighborhood3d
In 3D configuration (see
computeMode ), the neighborhood connectivity defines the connectivity considered for processing adjacent voxels. |
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outImage
The output image.
|
SoSFEnum<SoGrayscaleResconstructionProcessing.ReconstructModes> |
reconstructMode
Select the reconstruction mode to use.
|
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgress
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoGrayscaleResconstructionProcessing()
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
@Deprecated public static final int DILATION
SoGrayscaleResconstructionProcessing.ReconstructModes.DILATION
instead.@Deprecated public static final int EROSION
SoGrayscaleResconstructionProcessing.ReconstructModes.EROSION
instead.public final SoSFEnum<SoImageVizEngine.ComputeModes> computeMode
public final SoSFEnum<SoImageVizEngine.Neighborhood3ds> neighborhood3d
computeMode
), the neighborhood connectivity defines the connectivity considered for processing adjacent voxels.
. Default is CONNECTIVITY_26.public final SoSFEnum<SoGrayscaleResconstructionProcessing.ReconstructModes> reconstructMode
public final SoSFImageDataAdapter inMaskImage
public final SoSFImageDataAdapter inMarkerImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outImage
Generated on August 20, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com