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.Neighborhood3dsInventor.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, onProgressVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoRemoveSmallHolesProcessing()
Constructor.
|
abortEvaluate, isEvaluating, startEvaluate, waitEvaluatecopy, getByName, getOutput, getOutputNamecopyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsdispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touchgetAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadspublic final SoSFEnum<SoImageVizEngine.ComputeModes> computeMode
public final SoSFImageDataAdapter inObjectImage
public final SoSFFloat holeSize
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outObjectImage
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com