Table of Contents

Class RidgeDetectionFilter

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

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

public class RidgeDetectionFilter : Algorithm, IDisposable, ICvPtrHolder
Inheritance
RidgeDetectionFilter
Implements
Inherited Members

Constructors

RidgeDetectionFilter(nint)

Constructor

protected RidgeDetectionFilter(nint p)

Parameters

p nint

Methods

Create(MatType?, int, int, int, MatType?, double, double, BorderTypes)

Create pointer to the Ridge detection filter.

public static RidgeDetectionFilter Create(MatType? ddepth = null, int dx = 1, int dy = 1, int ksize = 3, MatType? outDtype = null, double scale = 1, double delta = 0, BorderTypes borderType = BorderTypes.Default)

Parameters

ddepth MatType?

Specifies output image depth. Defualt is CV_32FC1

dx int

Order of derivative x, default is 1

dy int

Order of derivative y, default is 1

ksize int

Sobel kernel size , default is 3

outDtype MatType?

Converted format for output, default is CV_8UC1

scale double

Optional scale value for derivative values, default is 1

delta double

Optional bias added to output, default is 0

borderType BorderTypes

Pixel extrapolation method, default is BORDER_DEFAULT

Returns

RidgeDetectionFilter

DisposeManaged()

Releases managed resources

protected override void DisposeManaged()

GetRidgeFilteredImage(InputArray, OutputArray)

Apply Ridge detection filter on input image.

public virtual void GetRidgeFilteredImage(InputArray src, OutputArray dst)

Parameters

src InputArray

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

dst OutputArray

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