public class SoMarkerBasedWatershedProcessing extends SoImageVizEngine
SoMarkerBasedWatershedProcessing
engine performs a fast determination of the watershed lines.
For an introduction, see Watershed principle.
SoMarkerBasedWatershedProcessing
has 2 configurations. See outputMode
field.
This engine performs a fast determination of the watershed lines from specified markers in a label image, followed by a labelling of the complementary set. It can be viewed as the zones of influence of the markers.
Either the separated basins are output in a label image, the crest lines being part of the complementary (not a label), or the crest lines are output in a binary image.
Note: Because two bits are used to code the pixels during the algorithm, input gray levels image should range from 0 to 16383. If the range is greater, a normalization is applied to reduce the dynamic of this image.
Notice: This engine requires to preliminarily load the whole input data set into memory to be computed. As a consequence the input data set will be automatically loaded before the execution of this engine, ignoring the maximum memory parameter of the SbImageDataAdapterHelper.getAppropriateAdapter function or SoFileDataAdapter class
If the input data set cannot fit in memory, this engine will fail during its computation. |
See also:
SoAddObjectToLabelProcessing
, SoGrayscaleResconstructionProcessing
File format/default:
MarkerBasedWatershedProcessing {
computeMode | MODE_AUTO |
neighborhood3d | CONNECTIVITY_26 |
outputMode | WATERSHED_RIDGES |
inGrayImage | NULL |
inMarkerImage | NULL |
precisionMode | REPEATABLE |
Library references: catchbasin fastwatershed
Modifier and Type | Class and Description |
---|---|
static class |
SoMarkerBasedWatershedProcessing.OutputModes |
static class |
SoMarkerBasedWatershedProcessing.PrecisionModes |
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 |
FAST
Deprecated.
Use
SoMarkerBasedWatershedProcessing.PrecisionModes.FAST instead. |
SoSFImageDataAdapter |
inGrayImage
The input grayscale image.
|
SoSFImageDataAdapter |
inMarkerImage
The input marker (label) image.
|
SoSFEnum<SoImageVizEngine.Neighborhood3ds> |
neighborhood3d
In 3D configuration (see
computeMode ), the neighborhood connectivity defines the connectivity considered for processing adjacent voxels. |
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outObjectImage
The output image.
|
SoSFEnum<SoMarkerBasedWatershedProcessing.OutputModes> |
outputMode
Select the type of output mode.
|
SoSFEnum<SoMarkerBasedWatershedProcessing.PrecisionModes> |
precisionMode
Select the mode of algorithm precision for watershed.
|
static int |
REPEATABLE
Deprecated.
|
static int |
SEPARATED_BASINS
Deprecated.
|
static int |
WATERSHED_RIDGES
Deprecated.
|
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgress
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoMarkerBasedWatershedProcessing()
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 SEPARATED_BASINS
SoMarkerBasedWatershedProcessing.OutputModes.SEPARATED_BASINS
instead.@Deprecated public static final int WATERSHED_RIDGES
SoMarkerBasedWatershedProcessing.OutputModes.WATERSHED_RIDGES
instead.@Deprecated public static final int REPEATABLE
SoMarkerBasedWatershedProcessing.PrecisionModes.REPEATABLE
instead.@Deprecated public static final int FAST
SoMarkerBasedWatershedProcessing.PrecisionModes.FAST
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<SoMarkerBasedWatershedProcessing.OutputModes> outputMode
public final SoSFImageDataAdapter inGrayImage
public final SoSFImageDataAdapter inMarkerImage
public final SoSFEnum<SoMarkerBasedWatershedProcessing.PrecisionModes> precisionMode
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outObjectImage
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com