[−][src]Trait opencv::prelude::StructuredEdgeDetection
Class implementing edge detection algorithm from Dollar2013 :
Required methods
pub fn as_raw_StructuredEdgeDetection(&self) -> *const c_void
[src]
pub fn as_raw_mut_StructuredEdgeDetection(&mut self) -> *mut c_void
[src]
Provided methods
pub fn detect_edges(
&self,
_src: &dyn ToInputArray,
_dst: &mut dyn ToOutputArray
) -> Result<()>
[src]
&self,
_src: &dyn ToInputArray,
_dst: &mut dyn ToOutputArray
) -> Result<()>
The function detects edges in src and draw them to dst.
The algorithm underlies this function is much more robust to texture presence, than common approaches, e.g. Sobel
Parameters
- _src: source image (RGB, float, in [0;1]) to detect edges
- _dst: destination image (grayscale, float, in [0;1]) where edges are drawn
See also
Sobel, Canny
pub fn compute_orientation(
&self,
_src: &dyn ToInputArray,
_dst: &mut dyn ToOutputArray
) -> Result<()>
[src]
&self,
_src: &dyn ToInputArray,
_dst: &mut dyn ToOutputArray
) -> Result<()>
The function computes orientation from edge image.
Parameters
- _src: edge image.
- _dst: orientation image.
pub fn edges_nms(
&self,
edge_image: &dyn ToInputArray,
orientation_image: &dyn ToInputArray,
_dst: &mut dyn ToOutputArray,
r: i32,
s: i32,
m: f32,
is_parallel: bool
) -> Result<()>
[src]
&self,
edge_image: &dyn ToInputArray,
orientation_image: &dyn ToInputArray,
_dst: &mut dyn ToOutputArray,
r: i32,
s: i32,
m: f32,
is_parallel: bool
) -> Result<()>
The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.
Parameters
- edge_image: edge image from detectEdges function.
- orientation_image: orientation image from computeOrientation function.
- _dst: suppressed image (grayscale, float, in [0;1])
- r: radius for NMS suppression.
- s: radius for boundary suppression.
- m: multiplier for conservative suppression.
- isParallel: enables/disables parallel computing.
C++ default parameters
- r: 2
- s: 0
- m: 1
- is_parallel: true