[][src]Function opencv::imgproc::scharr

pub fn scharr(
    src: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray,
    ddepth: i32,
    dx: i32,
    dy: i32,
    scale: f64,
    delta: f64,
    border_type: i32
) -> Result<()>

Calculates the first x- or y- image derivative using Scharr operator.

The function computes the first x- or y- spatial image derivative using the Scharr operator. The call

block formula

is equivalent to

block formula

Parameters

  • src: input image.
  • dst: output image of the same size and the same number of channels as src.
  • ddepth: output image depth, see @ref filter_depths "combinations"
  • dx: order of the derivative x.
  • dy: order of the derivative y.
  • scale: optional scale factor for the computed derivative values; by default, no scaling is applied (see #getDerivKernels for details).
  • delta: optional delta value that is added to the results prior to storing them in dst.
  • borderType: pixel extrapolation method, see #BorderTypes

See also

cartToPolar

C++ default parameters

  • scale: 1
  • delta: 0
  • border_type: BORDER_DEFAULT