StructuredEdgeDetection

Objective-C

@interface StructuredEdgeDetection : Algorithm

Swift

class StructuredEdgeDetection : Algorithm

Class implementing edge detection algorithm from CITE: Dollar2013 :

Member of Ximgproc

Methods

  • The function computes orientation from edge image.

    Declaration

    Objective-C

    - (void)computeOrientation:(nonnull Mat *)_src _dst:(nonnull Mat *)_dst;

    Swift

    func computeOrientation(_src: Mat, _dst: Mat)

    Parameters

    _src

    edge image.

    _dst

    orientation image.

  • 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
    

    Declaration

    Objective-C

    - (void)detectEdges:(nonnull Mat *)_src _dst:(nonnull Mat *)_dst;

    Swift

    func detectEdges(_src: Mat, _dst: Mat)

    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

    Sobel, Canny

  • The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.

    Declaration

    Objective-C

    - (void)edgesNms:(nonnull Mat *)edge_image
        orientation_image:(nonnull Mat *)orientation_image
                     _dst:(nonnull Mat *)_dst
                        r:(int)r
                        s:(int)s
                        m:(float)m
               isParallel:(BOOL)isParallel;

    Swift

    func edgesNms(edge_image: Mat, orientation_image: Mat, _dst: Mat, r: Int32, s: Int32, m: Float, isParallel: Bool)

    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.

  • The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.

    Declaration

    Objective-C

    - (void)edgesNms:(nonnull Mat *)edge_image
        orientation_image:(nonnull Mat *)orientation_image
                     _dst:(nonnull Mat *)_dst
                        r:(int)r
                        s:(int)s
                        m:(float)m;

    Swift

    func edgesNms(edge_image: Mat, orientation_image: Mat, _dst: Mat, r: Int32, s: Int32, m: Float)

    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.

  • The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.

    Declaration

    Objective-C

    - (void)edgesNms:(nonnull Mat *)edge_image
        orientation_image:(nonnull Mat *)orientation_image
                     _dst:(nonnull Mat *)_dst
                        r:(int)r
                        s:(int)s;

    Swift

    func edgesNms(edge_image: Mat, orientation_image: Mat, _dst: Mat, r: Int32, s: Int32)

    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.

  • The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.

    Declaration

    Objective-C

    - (void)edgesNms:(nonnull Mat *)edge_image
        orientation_image:(nonnull Mat *)orientation_image
                     _dst:(nonnull Mat *)_dst
                        r:(int)r;

    Swift

    func edgesNms(edge_image: Mat, orientation_image: Mat, _dst: Mat, r: Int32)

    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.

  • The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.

    Declaration

    Objective-C

    - (void)edgesNms:(nonnull Mat *)edge_image
        orientation_image:(nonnull Mat *)orientation_image
                     _dst:(nonnull Mat *)_dst;

    Swift

    func edgesNms(edge_image: Mat, orientation_image: Mat, _dst: Mat)

    Parameters

    edge_image

    edge image from detectEdges function.

    orientation_image

    orientation image from computeOrientation function.

    _dst

    suppressed image (grayscale, float, in [0;1])