Class SoRemoveSmallHolesProcessing
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.engines.SoEngine
-
- com.openinventor.imageviz.engines.SoImageVizEngine
-
- com.openinventor.imageviz.engines.imagesegmentation.featureselection.SoRemoveSmallHolesProcessing
-
- All Implemented Interfaces:
SafeDisposable
public class SoRemoveSmallHolesProcessing extends SoImageVizEngine
SoRemoveSmallHolesProcessing
engine.SoRemoveSmallHolesProcessing
allows filling smallest holes in a binary imageThis 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:
- Area measure for 2D images,
- Volume3d measure for 3D images.
Finally, the engine computes again the negative to obtain the result image.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field 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.-
Fields inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
onBegin, onEnd, onProgress
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoRemoveSmallHolesProcessing()
Constructor.
-
Method Summary
-
Methods inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
-
Methods inherited from class com.openinventor.inventor.engines.SoEngine
copy, getByName, getOutput, getOutputName
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
computeMode
public final SoSFEnum<SoImageVizEngine.ComputeModes> computeMode
Select the compute Mode (2D or 3D or AUTO) . Default is MODE_AUTO
-
inObjectImage
public final SoSFImageDataAdapter inObjectImage
The input object binary image. Default value is NULL. Supported types include: binary color image.
-
holeSize
public final SoSFFloat holeSize
The maximum size of holes to delete (in pixel). Default value is 10.0f.
-
outObjectImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outObjectImage
The output object binary image. Default value is NULL. Supported types include: grayscale binary label color image.
-
-