Computes kernel for the Sobel filter.
IppStatus ippiGenSobelKernel_16s(Ipp16s* pDst, int kernelSize, int dx, int sign);
IppStatus ippiGenSobelKernel_32f(Ipp132f* pDst, int kernelSize, int dx, int sign);
pDst |
Pointer to the destination vector. |
kernelSize |
Size of the Sobel kernel. |
dx |
Order of derivative. |
sign |
Specifies signs of kernel elements. |
The function ippiGenSobelKernel is declared in the ippcv.h file. This function computes the one-dimensional Sobel kernel. Kernel coefficients are equal to coefficients of the polynomial
If the sign parameter is negative, then signs of kernel coefficients are changed. Kernel calculated by this function can be used to filter images by a high order Sobel filter.
ippStsNoErr |
Indicates no error. Any other value indicates an error or a warning. |
ippStsNullPtrErr |
Indicates an error condition if the pDst pointer is NULL. |
ippStsSizeErr |
Indicates an error condition if kernelSize is less than 3 or is even. |
ippStsBadArgErr |
Indicates an error condition if dx is equal to or less than kernelSize, or dx is negative. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.