SoRemoveSmallHolesProcessing engine More...
#include <ImageViz/Engines/ImageSegmentation/FeatureSelection/SoRemoveSmallHolesProcessing.h>
Public Member Functions | |
SoRemoveSmallHolesProcessing () | |
Public Attributes | |
SoSFEnum | computeMode |
SoSFImageDataAdapter | inObjectImage |
SoSFFloat | holeSize |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outObjectImage |
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.
computeMode | MODE_AUTO |
inObjectImage | NULL |
holeSize | 10.0f |
SoRemoveSmallHolesProcessing::SoRemoveSmallHolesProcessing | ( | ) |
Constructor.
Select the compute Mode (2D or 3D or AUTO) Use enum ComputeMode.
Default is MODE_AUTO
The maximum size of holes to delete (in pixel).
Default value is 10.0f.
The input object binary image.
Default value is NULL. Supported types include: binary color image.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoRemoveSmallHolesProcessing::outObjectImage |
The output object binary image.
Default value is NULL. Supported types include: grayscale binary label color image.