IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit

Masked mean filter used to blur a 3d image. More...

IPSDKIPLFILTERING_API image::ImagePtr ipsdk::imaproc::filter::meanSmoothing3dMaskImg (const image::ImageConstPtr &pInImg3d, const image::ImageConstPtr &pInMaskImg3d, const ipUInt32 inHalfKnlSizeX, const ipUInt32 inHalfKnlSizeY, const ipUInt32 inHalfKnlSizeZ)
 wrapper function for Masked mean filter used to blur a 3d image More...
 
IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::meanSmoothing3dMaskImg (const image::ImageConstPtr &pInImg3d, const image::ImageConstPtr &pInMaskImg3d, const ipUInt32 inHalfKnlSizeX, const ipUInt32 inHalfKnlSizeY, const ipUInt32 inHalfKnlSizeZ, const image::ImagePtr &pOutImg)
 wrapper function for Masked mean filter used to blur a 3d image More...
 

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.

Attributes description

Attribute description for algorithm :

Name ToolTip Default Initializer
ipsdk::imaproc::attr::InImg3d [Input] 3d image for operation X
ipsdk::imaproc::attr::InBinImg3d [Input] binary 3d image for processing operation X
ipsdk::imaproc::attr::InHalfKnlSizeX [Input] half kernel size along X axis for operation X
ipsdk::imaproc::attr::InHalfKnlSizeY [Input] half kernel size along Y axis for operation X
ipsdk::imaproc::attr::InHalfKnlSizeZ [Input] half kernel size along Z axis for operation X
ipsdk::imaproc::attr::OutImg [Output] image for processing operation ipsdk::imaproc::duplicateInOut (_pOutImg, _pInImg3d)

Global Rule description

Global rule description for algorithm :
ipsdk::imaproc::matchSize (_pInImg3d,_pOutImg) && 
ipsdk::imaproc::matchSize (_pInImg3d,_pInBinImg3d)

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

Associated library

IPSDKIPLFiltering

Header file

Code Example

// compute the masked mean smoothing
ImagePtr pOutImg = meanSmoothing3dMaskImg(pInImg, pMaskImg, inHalfKnlSize, inHalfKnlSize, inHalfKnlSize);
See also
MeanSmoothing3dMaskImgLvl1
MeanSmoothing3dMaskImgLvl2
MeanSmoothing3dMaskImgLvl3

Function Documentation

◆ meanSmoothing3dMaskImg() [1/2]

IPSDKIPLFILTERING_API image::ImagePtr ipsdk::imaproc::filter::meanSmoothing3dMaskImg ( const image::ImageConstPtr pInImg3d,
const image::ImageConstPtr pInMaskImg3d,
const ipUInt32  inHalfKnlSizeX,
const ipUInt32  inHalfKnlSizeY,
const ipUInt32  inHalfKnlSizeZ 
)

wrapper function for Masked mean filter used to blur a 3d image

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ meanSmoothing3dMaskImg() [2/2]

IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::meanSmoothing3dMaskImg ( const image::ImageConstPtr pInImg3d,
const image::ImageConstPtr pInMaskImg3d,
const ipUInt32  inHalfKnlSizeX,
const ipUInt32  inHalfKnlSizeY,
const ipUInt32  inHalfKnlSizeZ,
const image::ImagePtr pOutImg 
)

wrapper function for Masked mean filter used to blur a 3d image

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure