public class SoHExtremaWatershedProcessing extends SoImageVizEngine
SoHExtremaWatershedProcessing
engine computes the watershed lines of a grayscale image.
This engine computes the watershed lines of a grayscale image. It directly uses the image for black objects and the inverted image for white objects. You can adjust the contrast level which is used to reduce the number of markers for the watershed process.
This engine is a high-level combination of watershed, distance transform and numerical reconstruction algorithms. There is a limitation to the separating ability: if some particles overlap too much, they will not be separated. This engine can be used on the gradient modulus to compute best-fit contours.
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:
File format/default:
HExtremaWatershedProcessing {
computeMode | MODE_AUTO |
neighborhood3d | CONNECTIVITY_26 |
inGrayImage | NULL |
objectLightness | DARK_OBJECTS |
separationMode | SEPARATED_OBJECTS |
algorithmMode | REPEATABLE |
contrastValue | 30 |
Library references: greyseparate
Modifier and Type | Class and Description |
---|---|
static class |
SoHExtremaWatershedProcessing.AlgorithmModes |
static class |
SoHExtremaWatershedProcessing.ObjectLightnessType |
static class |
SoHExtremaWatershedProcessing.SeparationModes |
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFEnum<SoHExtremaWatershedProcessing.AlgorithmModes> |
algorithmMode
Select the algorithm mode for fastwatershed.
|
static int |
BRIGHT_OBJECTS
Deprecated.
|
SoSFEnum<SoImageVizEngine.ComputeModes> |
computeMode
Select the compute Mode (2D or 3D or AUTO) .
|
static int |
CONTIGUOUS_BASINS
Deprecated.
|
SoSFInt32 |
contrastValue
The depth of valley.
|
static int |
DARK_OBJECTS
Deprecated.
|
static int |
FAST
Deprecated.
Use
SoHExtremaWatershedProcessing.AlgorithmModes.FAST instead. |
SoSFImageDataAdapter |
inGrayImage
The input grayscale image.
|
SoSFEnum<SoImageVizEngine.Neighborhood3ds> |
neighborhood3d
In 3D configuration (see
computeMode ), the neighborhood connectivity defines the connectivity considered for processing adjacent voxels. |
SoSFEnum<SoHExtremaWatershedProcessing.ObjectLightnessType> |
objectLightness
Select the lightness mode for object to separate.
|
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outSeparationImage
The output separation (binary or label) image.
|
static int |
REPEATABLE
Deprecated.
|
static int |
SEPARATED_BASINS
Deprecated.
|
static int |
SEPARATED_OBJECTS
Deprecated.
|
SoSFEnum<SoHExtremaWatershedProcessing.SeparationModes> |
separationMode
Select the output image type: separation lines, split objects or separated basins.
|
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 |
---|
SoHExtremaWatershedProcessing()
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 DARK_OBJECTS
SoHExtremaWatershedProcessing.ObjectLightnessType.DARK_OBJECTS
instead.@Deprecated public static final int BRIGHT_OBJECTS
SoHExtremaWatershedProcessing.ObjectLightnessType.BRIGHT_OBJECTS
instead.@Deprecated public static final int SEPARATED_OBJECTS
SoHExtremaWatershedProcessing.SeparationModes.SEPARATED_OBJECTS
instead.@Deprecated public static final int WATERSHED_RIDGES
SoHExtremaWatershedProcessing.SeparationModes.WATERSHED_RIDGES
instead.@Deprecated public static final int SEPARATED_BASINS
SoHExtremaWatershedProcessing.SeparationModes.SEPARATED_BASINS
instead.@Deprecated public static final int CONTIGUOUS_BASINS
SoHExtremaWatershedProcessing.SeparationModes.CONTIGUOUS_BASINS
instead.@Deprecated public static final int REPEATABLE
SoHExtremaWatershedProcessing.AlgorithmModes.REPEATABLE
instead.@Deprecated public static final int FAST
SoHExtremaWatershedProcessing.AlgorithmModes.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 SoSFImageDataAdapter inGrayImage
public final SoSFEnum<SoHExtremaWatershedProcessing.ObjectLightnessType> objectLightness
public final SoSFEnum<SoHExtremaWatershedProcessing.SeparationModes> separationMode
public final SoSFEnum<SoHExtremaWatershedProcessing.AlgorithmModes> algorithmMode
public final SoSFInt32 contrastValue
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outSeparationImage
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com