public class SoTopHatProcessing extends SoImageVizEngine
SoTopHatProcessing
image filter
The SoTopHatProcessing
engine performs a Top-Hat algorithm on a gray level image.
The Top-Hat segmentation extracts small elements and details from given images. It detects the dark or the bright area, corresponding to the valleys or the narrow peaks. There exist two types of Top-Hat transform:
The Top-Hat module is divided into two phases:
The SoTopHatProcessing
engine also includes a rough and a smooth mode. Whereas the rough mode uses a standard structuring element, the smooth mode employs a more sophisticated volumic structuring element, a rhombodecahedron, which usually generates a much more precise Top-Hat.
File format/default:
TopHatProcessing {
computeMode | MODE_AUTO |
elementShape | ROUGH |
inGrayImage | NULL |
elementSize | 3 |
objectLightness | BRIGHT_OBJECTS |
thresholdLevel | 128.0f 255.0f |
Library references: high_tophat tophat
Modifier and Type | Class and Description |
---|---|
static class |
SoTopHatProcessing.ElementShapes |
static class |
SoTopHatProcessing.ObjectLightnessType |
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
BRIGHT_OBJECTS
Deprecated.
|
SoSFEnum<SoImageVizEngine.ComputeModes> |
computeMode
Select the compute Mode (2D or 3D or AUTO) .
|
static int |
DARK_OBJECTS
Deprecated.
Use
SoTopHatProcessing.ObjectLightnessType.DARK_OBJECTS instead. |
SoSFEnum<SoTopHatProcessing.ElementShapes> |
elementShape
Select the type of structuring element shape.
|
SoSFInt32 |
elementSize
The half size of the structuring element.
|
SoSFImageDataAdapter |
inGrayImage
Input grey level image.
|
SoSFEnum<SoTopHatProcessing.ObjectLightnessType> |
objectLightness
Select the lightness mode for object to detect.
|
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outBinaryImage
The output binary image.
|
static int |
ROUGH
Deprecated.
Use
SoTopHatProcessing.ElementShapes.ROUGH instead. |
static int |
SMOOTH
Deprecated.
Use
SoTopHatProcessing.ElementShapes.SMOOTH instead. |
SoSFVec2f |
thresholdLevel
The low and high threshold levels.
|
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgress
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoTopHatProcessing()
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 ROUGH
SoTopHatProcessing.ElementShapes.ROUGH
instead.@Deprecated public static final int SMOOTH
SoTopHatProcessing.ElementShapes.SMOOTH
instead.@Deprecated public static final int BRIGHT_OBJECTS
SoTopHatProcessing.ObjectLightnessType.BRIGHT_OBJECTS
instead.@Deprecated public static final int DARK_OBJECTS
SoTopHatProcessing.ObjectLightnessType.DARK_OBJECTS
instead.public final SoSFEnum<SoImageVizEngine.ComputeModes> computeMode
public final SoSFEnum<SoTopHatProcessing.ElementShapes> elementShape
public final SoSFImageDataAdapter inGrayImage
public final SoSFInt32 elementSize
public final SoSFEnum<SoTopHatProcessing.ObjectLightnessType> objectLightness
public final SoSFVec2f thresholdLevel
SbVec2f
(128.0f,255.0f).public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outBinaryImage
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com