Developer Reference for Intel® Integrated Performance Primitives 2018
Performs Gaussian filtering of an image with user-defined borders.
IppStatus ippiFilterGaussian_<mod>(const Ipp<datatype>* pSrc, IppSizeL srcStep, Ipp<datatype>* pDst, IppSizeL dstStep, IppiSizeL roiSize, IppiBorderType borderType, Ipp<datatype> borderValue[1], IppFilterGaussianSpec* pSpec, Ipp8u* pBuffer);
Supported values for mod:
8u_C1R_L | 16u_C1R_L | 16s_C1R_L | 32f_C1R_L |
IppStatus ippiFilterGaussian_<mod>(const Ipp<datatype>* pSrc, IppSizeL srcStep, Ipp<datatype>* pDst, IppSizeL dstStep, IppiSizeL roiSize, IppiBorderType borderType, Ipp<datatype> borderValue[3], IppFilterGaussianSpec* pSpec, Ipp8u* pBuffer);
Supported values for mod:
8u_C3R_L | 16u_C3R_L | 16s_C3R_L | 32f_C3R_L |
ippcv_l.h
Headers: ippcore.h, ippvm.h, ipps.h, ippi.h
Libraries: ippcore.lib, ippvm.lib, ipps.lib, ippi.lib
pSrc |
Pointer to the source image ROI. |
srcStep |
Distance, in bytes, between the starting points of consecutive lines in the source image. |
pDst |
Pointer to the destination image ROI. |
dstStep |
Distance, in bytes, between the starting points of consecutive lines in the destination image. |
roiSize |
Size of the source and destination image ROI, in pixels. |
borderType |
One of the border supported types. |
borderValue |
Constant value to assign to pixels of the constant border. This parameter is applicable only to the ippBorderConst border type. |
pSpec |
Pointer to the Gaussian specification structure. |
pBuffer |
Pointer to the work buffer. |
This function operates with ROI (see Regions of Interest in Intel IPP).
These functions apply the Gaussian filter to the source image ROI pSrc. The kernel of the Gaussian filter is the matrix of size kernelSizexkernelSize with the standard deviation sigma. The values of the Gaussian kernel elements are computed by the FilterGaussianInit function. Elements of the kernel are normalized. The anchor cell is the center of the kernel.
Before using the ippiFilterGaussian function, compute the size of the Gaussian specification structure using the FilterGaussianGetSpecSize function and the external buffer using the FilterGaussianGetBufferSize function and initialize the structure using the FilterGaussianInit function.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when one of the specified pointers is NULL. |
ippStsSizeErr |
Indicates an error when roiSize has a field with a zero or negative value. |
ippStsStepErr |
Indicates an error when srcStep or dstStep is less than roiSize.width*<pixelSize>. |
ippStsNotEvenStepErr |
Indicates an error when one of the step values is not divisible by sizeof(Ipp<dataType>). |
ippStsBorderErr |
Indicates an error when borderType has an illegal value. |
ippStsBadArgErr |
Indicates an error when kernelSize is even, or less than 3. |