Trait opencv::prelude::StructuredEdgeDetectionConst[][src]

pub trait StructuredEdgeDetectionConst: AlgorithmTraitConst {
    fn as_raw_StructuredEdgeDetection(&self) -> *const c_void;

    fn detect_edges(
        &self,
        _src: &dyn ToInputArray,
        _dst: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
fn compute_orientation(
        &self,
        _src: &dyn ToInputArray,
        _dst: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
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<()> { ... } }
Expand description

Class implementing edge detection algorithm from Dollar2013 :

Required methods

Provided methods

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

The function computes orientation from edge image.

Parameters
  • _src: edge image.
  • _dst: orientation image.

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

Implementors