image = | meanSmoothing3dMaskImg (inImg3d,inMaskImg3d,inHalfKnlSizeX,inHalfKnlSizeY,inHalfKnlSizeZ) |
Masked mean filter used to blur a 3d image.
This algorithm apply a box filter by taking into account only the pixels allowed by the input mask. Every pixel outside the mask is set to 0.
Please, refer to Masked Mean Smoothing 2d for an example of result in 2D case.
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLFiltering as filter
Code Example
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)
outImg = filter.meanSmoothing3dMaskImg(inImg, maskImg, 3, 3, 3)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLFiltering/Processor/MeanSmoothing3dMaskImg/MeanSmoothing3dMaskImg.h>
Code Example
ImagePtr pOutImg = meanSmoothing3dMaskImg(pInImg, pMaskImg, inHalfKnlSize, inHalfKnlSize, inHalfKnlSize);