Performs spatial noise reduction filtering.
IppStatus ippiFilterDenoiseSmooth_8u_C1R(const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep, IppiSize size, IppiRect roi, Ipp8u threshold, Ipp8* pWorkBuffer);
pSrc |
Pointer to the source image origin. |
srcStep |
Distance in bytes between starts of consecutive lines in the source image. |
pDst |
Pointer to the destination image origin. |
dstStep |
Distance in bytes between starts of consecutive lines in the destination image. |
size |
Size of the source image. The destination image is of the same size. |
roi |
Region of interest in the source image (of the IppiRect type). The destination image has the same ROI. |
threshold |
Parameter of the denoise algorithm for pixel comparison. If difference between the compared pixels is below the threshold value, the pixels are considered to be noised and will be smoothed in line with values of the neighboring pixels. Possible range is (0, 255). |
pWorkBuffer |
Pointer to the external work buffer of the size ≥ 2*(roiSize.width+8)*(roiSize.height+8). |
The function ippiFilterDenoiseSmooth_8u_C1R is declared in the ippvc.h file. The function performs Spatial Noise Reduction (SNR) filtering.
The algorithm applies a lowpass filter to an image by using a 3x3 mask and analyzes difference between pixels in accordance with threshold. If the difference is smaller than the threshold, the corresponding pixels are noised and will be smoothed. The 3x3 mask is also used for smoothing.
ippStsNoErr |
Indicates no error. Any other value indicates an error. |
ippStsNullPtrErr |
Indicates an error condition if one of the specified pointers is NULL. |
ippStsSizeErr |
Indicates an incorrect input size of the image. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.