pub trait EdgeDrawingTrait: AlgorithmTrait + EdgeDrawingTraitConst {
// Required method
fn as_raw_mut_EdgeDrawing(&mut self) -> *mut c_void;
// Provided methods
fn set_params(&mut self, val: EdgeDrawing_Params) { ... }
fn detect_edges(&mut self, src: &impl ToInputArray) -> Result<()> { ... }
fn get_edge_image(&mut self, dst: &mut impl ToOutputArray) -> Result<()> { ... }
fn get_gradient_image(&mut self, dst: &mut impl ToOutputArray) -> Result<()> { ... }
fn get_segments(&mut self) -> Result<Vector<Vector<Point>>> { ... }
fn detect_lines(&mut self, lines: &mut impl ToOutputArray) -> Result<()> { ... }
fn detect_ellipses(
&mut self,
ellipses: &mut impl ToOutputArray,
) -> Result<()> { ... }
fn set_params_1(&mut self, parameters: EdgeDrawing_Params) -> Result<()> { ... }
}
Expand description
Mutable methods for crate::ximgproc::EdgeDrawing
Required Methods§
fn as_raw_mut_EdgeDrawing(&mut self) -> *mut c_void
Provided Methods§
fn set_params(&mut self, val: EdgeDrawing_Params)
Sourcefn detect_edges(&mut self, src: &impl ToInputArray) -> Result<()>
fn detect_edges(&mut self, src: &impl ToInputArray) -> Result<()>
Detects edges in a grayscale image and prepares them to detect lines and ellipses.
§Parameters
- src: 8-bit, single-channel, grayscale input image.
Sourcefn get_edge_image(&mut self, dst: &mut impl ToOutputArray) -> Result<()>
fn get_edge_image(&mut self, dst: &mut impl ToOutputArray) -> Result<()>
returns Edge Image prepared by detectEdges() function.
§Parameters
- dst: returns 8-bit, single-channel output image.
Sourcefn get_gradient_image(&mut self, dst: &mut impl ToOutputArray) -> Result<()>
fn get_gradient_image(&mut self, dst: &mut impl ToOutputArray) -> Result<()>
returns Gradient Image prepared by detectEdges() function.
§Parameters
- dst: returns 16-bit, single-channel output image.
Sourcefn get_segments(&mut self) -> Result<Vector<Vector<Point>>>
fn get_segments(&mut self) -> Result<Vector<Vector<Point>>>
Returns std::vector<std::vector
Sourcefn detect_lines(&mut self, lines: &mut impl ToOutputArray) -> Result<()>
fn detect_lines(&mut self, lines: &mut impl ToOutputArray) -> Result<()>
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.
Sourcefn detect_ellipses(&mut self, ellipses: &mut impl ToOutputArray) -> Result<()>
fn detect_ellipses(&mut self, ellipses: &mut impl ToOutputArray) -> Result<()>
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.
Sourcefn set_params_1(&mut self, parameters: EdgeDrawing_Params) -> Result<()>
fn set_params_1(&mut self, parameters: EdgeDrawing_Params) -> Result<()>
sets parameters.
this function is meant to be used for parameter setting in other languages than c++ like python.
§Parameters
- parameters: Parameters of the algorithm
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.