[][src]Function opencv::imgproc::canny_derivative

pub fn canny_derivative(
    dx: &dyn ToInputArray,
    dy: &dyn ToInputArray,
    edges: &mut dyn ToOutputArray,
    threshold1: f64,
    threshold2: f64,
    l2gradient: bool
) -> Result<()>

\overload

Finds edges in an image using the Canny algorithm with custom image gradient.

Parameters

  • dx: 16-bit x derivative of input image (CV_16SC1 or CV_16SC3).
  • dy: 16-bit y derivative of input image (same type as dx).
  • edges: output edge map; single channels 8-bit image, which has the same size as image .
  • threshold1: first threshold for the hysteresis procedure.
  • threshold2: second threshold for the hysteresis procedure.
  • L2gradient: a flag, indicating whether a more accurate inline formula norm inline formula should be used to calculate the image gradient magnitude ( L2gradient=true ), or whether the default inline formula norm inline formula is enough ( L2gradient=false ).

C++ default parameters

  • l2gradient: false