cv.getDerivKernels - MATLAB File Help |
Returns filter coefficients for computing spatial image derivatives
[kx, ky] = cv.getDerivKernels('OptionName', optionValue, ...)
KType
.KType
.denominator = 2^(KSize*2-Dx-Dy-2)
. If you are going to filter
floating-point images, you are likely to use the normalized kernels. But
if you compute derivatives of an 8-bit image, store the results in a
16-bit image, and wish to preserve all the fractional bits, you may want
to set Normalize=false
. default falsesingle
or double
.
default single
The function computes and returns the filter coefficients for spatial image
derivatives. When KSize='Scharr'
, the Scharr 3x3 kernels are generated
(see cv.Scharr). Otherwise, Sobel kernels are generated (see cv.Sobel). The
filters are normally passed to cv.sepFilter2D.