| image = | cleanSkeleton3dImg (inBinImg3d) |
Clean the input 3D skeleton image to keep only the longest branch.
This algorithm remove all secondary branches of a 3D skeleton in order to keep only the longest branch.
Here is an example of result of cleaned skeleton :
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLAdvancedMorphology as advmorpho
Code Example
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)
outImg = advmorpho.cleanSkeleton3dImg(inImg)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLAdvancedMorphology/Processor/CleanSkeleton3dImg/CleanSkeleton3dImg.h>
Code Example
ImagePtr pOutImg = cleanSkeleton3dImg(pInSkelImg);