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 |
---|---|
SoSFEnum<SoImageVizEngine.ComputeModes> |
computeMode
Select the compute Mode (2D or 3D or AUTO) .
|
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.
|
SoSFVec2f |
thresholdLevel
The low and high threshold levels.
|
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, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getNativeResourceHandle
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 July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com