cv.Scharr - MATLAB File Help |
Calculates the first x- or y- image derivative using Scharr operator
dst = cv.Scharr(src)
dst = cv.Scharr(src, 'OptionName',optionValue, ...)
src
.dst
. default 0DDepth=-1
, the output
image will have the same depth as the source. The following combinations
are supported:
SDepth = uint8 --> DDepth = -1, int16, single, double
SDepth = uint16, int16 --> DDepth = -1, single, double
SDepth = single --> DDepth = -1, single, double
SDepth = double --> DDepth = -1, double
The function computes the first x- or y- spatial image derivative using the Scharr operator.
The call:
dst = cv.Scharr(src, 'DDepth',ddepth, 'XOrder',dx, 'YOrder',dy, ...
'Scale',scale, 'Delta',delta, 'BorderType',borderType)
is equivalent to:
dst = cv.Sobel(src, 'DDepth',ddepth, 'XOrder',dx, 'YOrder',dy, ...
'KSize','Scharr', ...
'Scale',scale, 'Delta',delta, 'BorderType',borderType)