public class SoRemoveSmallHolesProcessing extends SoImageVizEngine
SoRemoveSmallHolesProcessing
engine
SoRemoveSmallHolesProcessing
allows filling smallest holes in a binary image
This engine allows filling the smallest holes in a binary image. The holeSize parameter indicates the maximum size of the holes to be filled.
In order to fill the holes, this engine computes the negative of the binary image, and then filters it with:
Finally, the engine computes again the negative to obtain the result image.
See also:
File format/default:
RemoveSmallHolesProcessing {
computeMode | MODE_AUTO |
inObjectImage | NULL |
holeSize | 10.0f |
Library references: removalsmallholes
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) .
|
SoSFFloat |
holeSize
The maximum size of holes to delete (in pixel).
|
SoSFImageDataAdapter |
inObjectImage
The input object binary image.
|
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outObjectImage
The output object binary image.
|
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgress
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoRemoveSmallHolesProcessing()
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
public final SoSFEnum<SoImageVizEngine.ComputeModes> computeMode
public final SoSFImageDataAdapter inObjectImage
public final SoSFFloat holeSize
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outObjectImage
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com