Applies Gauss filter with border.
IppStatus ippiFilterGaussBorder_32f_C1R(const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep, IppiSize roiSize, int kernelSize, Ipp32f sigma, IppiBorderType borderType, Ipp32f borderValue, Ipp8u* pBuffer);
pSrc |
Pointer to the source image ROI. | ||||||||||
srcStep |
Distance in bytes between starts of consecutive lines in the source image. | ||||||||||
pDst |
Pointer to the destination image ROI. | ||||||||||
dstStep |
Distance in bytes between starts of consecutive lines in the destination image. | ||||||||||
roiSize |
Size of the source and destination image ROI. | ||||||||||
kernelSize |
Specifies the size of the Gaussian kernel, must be odd and greater than or equal to 3. | ||||||||||
sigma |
Standard deviation of the Gaussian kernel. | ||||||||||
borderType |
Type of border (see Borders); the following values are possible:
|
||||||||||
borderValue |
The constant value to assign to the pixels in the constant border (not applicable for other border's type). | ||||||||||
pBuffer |
Pointer to the working buffer. |
The function ippiFilterGaussBorder is declared in the ippcv.h file. It operates with ROI (see Regions of Interest in Intel IPP).
This function applies the Gaussian filter to the source image ROI pSrc. The kernel of this filter is the matrix of size kernelSize*kernelSize with the standard deviation sigma. The values of the elements of the Gaussian kernel are calculated according to the formula:
and then are normalized. The anchor cell is the center of the kernel.
The function requires the working buffer pBuffer whose size should be computed by the function ippiFilterGaussGetBufferSize beforehand.
ippStsNoErr |
Indicates no error. Any other value indicates an error or a warning. |
ippStsNullPtrErr |
Indicates an error condition if one of the specified pointers is NULL. |
ippStsSizeErr |
Indicates an error condition if roiSize has a field with a zero or negative value. |
ippStsStepErr |
Indicates an error condition if srcStep or dstStep is less than roiSize.width * <pixelSize>. |
ippStsNotEvenStepErr |
Indicates an error condition if one of the step values is not divisible by 4. |
ippStsBorderErr |
Indicates an error condition if borderType has a wrong value. |
ippStsBadArgErr |
Indicates an error condition if kernelSize is less than 3, or sigma is less than or equal to 0. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.