pub trait EdgeDrawing: AlgorithmTrait + EdgeDrawingConst {
    fn as_raw_mut_EdgeDrawing(&mut self) -> *mut c_void;

    fn set_params(&mut self, val: EdgeDrawing_Params) { ... }
    fn detect_edges(&mut self, src: &dyn ToInputArray) -> Result<()> { ... }
    fn get_edge_image(&mut self, dst: &mut dyn ToOutputArray) -> Result<()> { ... }
    fn get_gradient_image(&mut self, dst: &mut dyn ToOutputArray) -> Result<()> { ... }
    fn get_segments(&mut self) -> Result<Vector<Vector<Point>>> { ... }
    fn detect_lines(&mut self, lines: &mut dyn ToOutputArray) -> Result<()> { ... }
    fn detect_ellipses(&mut self, ellipses: &mut dyn ToOutputArray) -> Result<()> { ... }
    fn set_params_1(&mut self, parameters: EdgeDrawing_Params) -> Result<()> { ... }
}

Required Methods

Provided Methods

Detects edges in a grayscale image and prepares them to detect lines and ellipses.

Parameters
  • src: 8-bit, single-channel, grayscale input image.

returns Edge Image prepared by detectEdges() function.

Parameters
  • dst: returns 8-bit, single-channel output image.

returns Gradient Image prepared by detectEdges() function.

Parameters
  • dst: returns 16-bit, single-channel output image.

Returns std::vector<std::vector> of detected edge segments, see detectEdges()

Detects lines.

Parameters
  • lines: output Vec<4f> contains the start point and the end point of detected lines.

Note: you should call detectEdges() before calling this function.

Detects circles and ellipses.

Parameters
  • ellipses: output Vec<6d> contains center point and perimeter for circles, center point, axes and angle for ellipses.

Note: you should call detectEdges() before calling this function.

sets parameters.

this function is meant to be used for parameter setting in other languages than c++ like python.

Parameters
  • parameters:

Implementors