Table of Contents

Class RidgeDetectionFilter

Namespace
Emgu.CV.XImgproc
Assembly
Emgu.CV.dll

Applies Ridge Detection Filter to an input image. Implements Ridge detection similar to the one in [Mathematica] (http://reference.wolfram.com/language/ref/RidgeFilter.html) using the eigen values from the Hessian Matrix of the input image using Sobel Derivatives. Additional refinement can be done using Skeletonization and Binarization.

public class RidgeDetectionFilter : SharedPtrObject, IDisposable, IAlgorithm
Inheritance
RidgeDetectionFilter
Implements
Inherited Members
Extension Methods

Constructors

RidgeDetectionFilter(DepthType, int, int, int, int, DepthType, int, double, double, BorderType)

Create a Ridge detection filter.

public RidgeDetectionFilter(DepthType dDepthType = DepthType.Cv32F, int dChannels = 1, int dx = 1, int dy = 1, int ksize = 3, DepthType outDepthType = DepthType.Cv8U, int outChannels = 1, double scale = 1, double delta = 0, BorderType borderType = BorderType.Default)

Parameters

dDepthType DepthType

Specifies output image depth.

dChannels int

Specifies output image channel.

dx int

Order of derivative x

dy int

Order of derivative y

ksize int

Sobel kernel size

outDepthType DepthType

Converted format for output

outChannels int

Converted format for output

scale double

Optional scale value for derivative values

delta double

Optional bias added to output

borderType BorderType

Pixel extrapolation method

Properties

AlgorithmPtr

Pointer to cv::Algorithm

public nint AlgorithmPtr { get; }

Property Value

nint

Methods

DisposeObject()

protected override void DisposeObject()

GetRidgeFilteredImage(IInputArray, IOutputArray)

Apply Ridge detection filter on input image.

public void GetRidgeFilteredImage(IInputArray img, IOutputArray output)

Parameters

img IInputArray

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

output IOutputArray

Output image with ridges.