![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Smooth an input 2d image computing local mean of pixels. More...
| IPSDKIPLFILTERING_API image::ImagePtr | ipsdk::imaproc::filter::meanSmoothing2dImg (const image::ImageConstPtr &pInImg, const ipUInt32 inHalfKnlSizeX, const ipUInt32 inHalfKnlSizeY) |
| wrapper function for Mean filter used to blur a 2d image More... | |
| IPSDKIPLFILTERING_API void | ipsdk::imaproc::filter::meanSmoothing2dImg (const image::ImageConstPtr &pInImg, const ipUInt32 inHalfKnlSizeX, const ipUInt32 inHalfKnlSizeY, const image::ImagePtr &pOutImg) |
| wrapper function for Mean filter used to blur a 2d image More... | |
Smooth an input 2d image computing local mean of pixels.
This low-pass 2d filter, also known as "box blur filter" or "box linear filter", computes for each pixel the average value of its neighboring pixels.
On output image values are given by:
where :
is defined by InHalfKnlSizeX attribute
is defined by InHalfKnlSizeY attributeInput and output images must have same size.
Here is an example of a Mean smoothing operation applied to an 8-bits grey levels input image (with
) :
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg | [Input] 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::OutOptWk1RealGpuImg | [Output Optional] Temporary working image for GPU processes (data contained in image buffer are reals) | 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)
| IPSDKIPLFILTERING_API image::ImagePtr ipsdk::imaproc::filter::meanSmoothing2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const ipUInt32 | inHalfKnlSizeX, | ||
| const ipUInt32 | inHalfKnlSizeY | ||
| ) |
wrapper function for Mean filter used to blur a 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::meanSmoothing2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const ipUInt32 | inHalfKnlSizeX, | ||
| const ipUInt32 | inHalfKnlSizeY, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for Mean filter used to blur a 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14