Developer Reference

  • 2020
  • 07/15/2020
  • Public Content
Contents

GenSobelKernel

Computes kernel for the Sobel filter.

Syntax

IppStatus ippiGenSobelKernel_16s(Ipp16s*
pDst
, int
kernelSize
, int
dx
, int
sign
);
IppStatus ippiGenSobelKernel_32f(Ipp32f*
pDst
, int
kernelSize
, int
dx
, int
sign
);
Include Files
ippcv.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
,
ipps.h
,
ippi.h
Libraries:
ippcore.lib
,
ippvm.lib
,
ipps.lib
,
ippi.lib
Parameters
pDst
Pointer to the destination vector.
kernelSize
Size of the Sobel kernel.
dx
Order of derivative.
sign
Specifies signs of kernel elements.
Description
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.
Return Values
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.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804