![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Masked mean filter used to blur a 2d image. More...
| IPSDKIPLFILTERING_API image::ImagePtr | ipsdk::imaproc::filter::meanSmoothing2dMaskImg (const image::ImageConstPtr &pInImg, const image::ImageConstPtr &pInMaskImg, const ipUInt32 inHalfKnlSizeX, const ipUInt32 inHalfKnlSizeY) |
| wrapper function for Masked mean filter used to blur a 2d image More... | |
| IPSDKIPLFILTERING_API void | ipsdk::imaproc::filter::meanSmoothing2dMaskImg (const image::ImageConstPtr &pInImg, const image::ImageConstPtr &pInMaskImg, const ipUInt32 inHalfKnlSizeX, const ipUInt32 inHalfKnlSizeY, const image::ImagePtr &pOutImg) |
| wrapper function for Masked mean filter used to blur a 2d image More... | |
Masked mean filter used to blur a 2d 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.
The figure below illustrates the 3x3 smoothing of 2 pixels according to a neighbourhood defined by a mask. The blue pixels represent the pixels allowed by the mask and the numerical values are the intensities to smooth in the input image.
Here is an example of a masked mean smoothing:
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg | [Input] image for processing operation | X |
| ipsdk::imaproc::attr::InMaskImg | [Input] Binary image for masking 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::OutImg | [Output] image for processing operation | ipsdk::imaproc::duplicateInOut (_pOutImg, _pInImg) |
Global rule description for algorithm :
ipsdk::imaproc::matchSize (_pInImg,_pOutImg) &&
ipsdk::imaproc::matchSize (_pInImg,_pInMaskImg)
| IPSDKIPLFILTERING_API image::ImagePtr ipsdk::imaproc::filter::meanSmoothing2dMaskImg | ( | const image::ImageConstPtr & | pInImg, |
| const image::ImageConstPtr & | pInMaskImg, | ||
| const ipUInt32 | inHalfKnlSizeX, | ||
| const ipUInt32 | inHalfKnlSizeY | ||
| ) |
wrapper function for Masked mean filter used to blur a 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::meanSmoothing2dMaskImg | ( | const image::ImageConstPtr & | pInImg, |
| const image::ImageConstPtr & | pInMaskImg, | ||
| const ipUInt32 | inHalfKnlSizeX, | ||
| const ipUInt32 | inHalfKnlSizeY, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for Masked mean filter used to blur a 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14