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.
|
SoSFEnum<SoImageVizEngine.ComputeModes> |
computeMode
Select the compute Mode (2D or 3D or AUTO) .
|
SoSFInt32 |
contrastValue
The depth of valley.
|
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.
|
SoSFEnum<SoHExtremaWatershedProcessing.SeparationModes> |
separationMode
Select the output image type: separation lines, split objects or separated basins.
|
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, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getNativeResourceHandle
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 July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com