IPSDK 0.2
IPSDK : Image Processing Software Development Kit
Masked Mean Smoothing 3dSee full documentation
imagemeanSmoothing3dMaskImg (inImg3d,inMaskImg3d,inHalfKnlSizeX,inHalfKnlSizeY,inHalfKnlSizeZ)

Detailed Description

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

# opening of input images
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)
# mean smoothing filter 2d computation
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

// compute the masked mean smoothing
ImagePtr pOutImg = meanSmoothing3dMaskImg(pInImg, pMaskImg, inHalfKnlSize, inHalfKnlSize, inHalfKnlSize);