| image = | removeSmallHoles3dImg (inBinImg3d,minShapeSize) |
| image = | removeBigHoles3dImg (inBinImg3d,minShapeSize) |
Removes small or big holes in a binary 3d image.
This algorithm allows to remove small or big holes in a 3D binary image.
removeSmallHoles3dImg removes small holes with a number of voxels lower than InMinShapeSize.
removeBigHoles3dImg removes small holes with a number of voxels higher than InMinShapeSize.
Here is an example of small and big holes removals:
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLAdvancedMorphology as advmorpho
Code Example
inBinImg = PyIPSDK.loadTiffImageFile(inputImgPath)
outImgSmall = advmorpho.removeSmallHoles2dImg(inBinImg, 600)
outImgBig = advmorpho.removeBigHoles2dImg(inBinImg, 600)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLAdvancedMorphology/Processor/RemoveHoles3dImg/RemoveHoles3dImg.h>
Code Example
ImagePtr pOutImgSmall = removeSmallHoles3dImg(pInBinImg, 600);
ImagePtr pOutImgBig = removeBigHoles3dImg(pInBinImg, 600);