RidgeDetectionFilter

Objective-C

@interface RidgeDetectionFilter : Algorithm

Swift

class RidgeDetectionFilter : Algorithm

Applies Ridge Detection Filter to an input image. Implements Ridge detection similar to the one in Mathematica using the eigen values from the Hessian Matrix of the input image using Sobel Derivatives. Additional refinement can be done using Skeletonization and Binarization. Adapted from CITE: segleafvein and CITE: M_RF

Member of Ximgproc

Methods

  • Create pointer to the Ridge detection filter.

    Declaration

    Objective-C

    + (nonnull RidgeDetectionFilter *)create:(int)ddepth
                                          dx:(int)dx
                                          dy:(int)dy
                                       ksize:(int)ksize
                                   out_dtype:(int)out_dtype
                                       scale:(double)scale
                                       delta:(double)delta
                                  borderType:(int)borderType;

    Swift

    class func create(ddepth: Int32, dx: Int32, dy: Int32, ksize: Int32, out_dtype: Int32, scale: Double, delta: Double, borderType: Int32) -> RidgeDetectionFilter

    Parameters

    ddepth

    Specifies output image depth. Defualt is CV_32FC1

    dx

    Order of derivative x, default is 1

    dy

    Order of derivative y, default is 1

    ksize

    Sobel kernel size , default is 3

    out_dtype

    Converted format for output, default is CV_8UC1

    scale

    Optional scale value for derivative values, default is 1

    delta

    Optional bias added to output, default is 0

    borderType

    Pixel extrapolation method, default is BORDER_DEFAULT

    See

    Sobel, threshold, getStructuringElement, morphologyEx.( for additional refinement)

  • Create pointer to the Ridge detection filter.

    Declaration

    Objective-C

    + (nonnull RidgeDetectionFilter *)create:(int)ddepth
                                          dx:(int)dx
                                          dy:(int)dy
                                       ksize:(int)ksize
                                   out_dtype:(int)out_dtype
                                       scale:(double)scale
                                       delta:(double)delta;

    Swift

    class func create(ddepth: Int32, dx: Int32, dy: Int32, ksize: Int32, out_dtype: Int32, scale: Double, delta: Double) -> RidgeDetectionFilter

    Parameters

    ddepth

    Specifies output image depth. Defualt is CV_32FC1

    dx

    Order of derivative x, default is 1

    dy

    Order of derivative y, default is 1

    ksize

    Sobel kernel size , default is 3

    out_dtype

    Converted format for output, default is CV_8UC1

    scale

    Optional scale value for derivative values, default is 1

    delta

    Optional bias added to output, default is 0

    See

    Sobel, threshold, getStructuringElement, morphologyEx.( for additional refinement)

  • Create pointer to the Ridge detection filter.

    Declaration

    Objective-C

    + (nonnull RidgeDetectionFilter *)create:(int)ddepth
                                          dx:(int)dx
                                          dy:(int)dy
                                       ksize:(int)ksize
                                   out_dtype:(int)out_dtype
                                       scale:(double)scale;

    Swift

    class func create(ddepth: Int32, dx: Int32, dy: Int32, ksize: Int32, out_dtype: Int32, scale: Double) -> RidgeDetectionFilter

    Parameters

    ddepth

    Specifies output image depth. Defualt is CV_32FC1

    dx

    Order of derivative x, default is 1

    dy

    Order of derivative y, default is 1

    ksize

    Sobel kernel size , default is 3

    out_dtype

    Converted format for output, default is CV_8UC1

    scale

    Optional scale value for derivative values, default is 1

    See

    Sobel, threshold, getStructuringElement, morphologyEx.( for additional refinement)

  • Create pointer to the Ridge detection filter.

    Declaration

    Objective-C

    + (nonnull RidgeDetectionFilter *)create:(int)ddepth
                                          dx:(int)dx
                                          dy:(int)dy
                                       ksize:(int)ksize
                                   out_dtype:(int)out_dtype;

    Swift

    class func create(ddepth: Int32, dx: Int32, dy: Int32, ksize: Int32, out_dtype: Int32) -> RidgeDetectionFilter

    Parameters

    ddepth

    Specifies output image depth. Defualt is CV_32FC1

    dx

    Order of derivative x, default is 1

    dy

    Order of derivative y, default is 1

    ksize

    Sobel kernel size , default is 3

    out_dtype

    Converted format for output, default is CV_8UC1

    See

    Sobel, threshold, getStructuringElement, morphologyEx.( for additional refinement)

  • Create pointer to the Ridge detection filter.

    Declaration

    Objective-C

    + (nonnull RidgeDetectionFilter *)create:(int)ddepth
                                          dx:(int)dx
                                          dy:(int)dy
                                       ksize:(int)ksize;

    Swift

    class func create(ddepth: Int32, dx: Int32, dy: Int32, ksize: Int32) -> RidgeDetectionFilter

    Parameters

    ddepth

    Specifies output image depth. Defualt is CV_32FC1

    dx

    Order of derivative x, default is 1

    dy

    Order of derivative y, default is 1

    ksize

    Sobel kernel size , default is 3

    See

    Sobel, threshold, getStructuringElement, morphologyEx.( for additional refinement)

  • Create pointer to the Ridge detection filter.

    Declaration

    Objective-C

    + (nonnull RidgeDetectionFilter *)create:(int)ddepth dx:(int)dx dy:(int)dy;

    Swift

    class func create(ddepth: Int32, dx: Int32, dy: Int32) -> RidgeDetectionFilter

    Parameters

    ddepth

    Specifies output image depth. Defualt is CV_32FC1

    dx

    Order of derivative x, default is 1

    dy

    Order of derivative y, default is 1

    See

    Sobel, threshold, getStructuringElement, morphologyEx.( for additional refinement)

  • Create pointer to the Ridge detection filter.

    Declaration

    Objective-C

    + (nonnull RidgeDetectionFilter *)create:(int)ddepth dx:(int)dx;

    Swift

    class func create(ddepth: Int32, dx: Int32) -> RidgeDetectionFilter

    Parameters

    ddepth

    Specifies output image depth. Defualt is CV_32FC1

    dx

    Order of derivative x, default is 1

    See

    Sobel, threshold, getStructuringElement, morphologyEx.( for additional refinement)

  • Create pointer to the Ridge detection filter.

    Declaration

    Objective-C

    + (nonnull RidgeDetectionFilter *)create:(int)ddepth;

    Swift

    class func create(ddepth: Int32) -> RidgeDetectionFilter

    Parameters

    ddepth

    Specifies output image depth. Defualt is CV_32FC1

    See

    Sobel, threshold, getStructuringElement, morphologyEx.( for additional refinement)

  • Create pointer to the Ridge detection filter. - see: Sobel, threshold, getStructuringElement, morphologyEx.( for additional refinement)

    Declaration

    Objective-C

    + (nonnull RidgeDetectionFilter *)create;

    Swift

    class func create() -> RidgeDetectionFilter
  • Apply Ridge detection filter on input image.

    Declaration

    Objective-C

    - (void)getRidgeFilteredImage:(nonnull Mat *)_img out:(nonnull Mat *)out;

    Swift

    func getRidgeFilteredImage(_img: Mat, out: Mat)

    Parameters

    _img

    InputArray as supported by Sobel. img can be 1-Channel or 3-Channels.

    out

    OutputAray of structure as RidgeDetectionFilter::ddepth. Output image with ridges.