Class RidgeDetectionFilter
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
DepthTypeSpecifies output image depth.
dChannels
intSpecifies output image channel.
dx
intOrder of derivative x
dy
intOrder of derivative y
ksize
intSobel kernel size
outDepthType
DepthTypeConverted format for output
outChannels
intConverted format for output
scale
doubleOptional scale value for derivative values
delta
doubleOptional bias added to output
borderType
BorderTypePixel extrapolation method
Properties
AlgorithmPtr
Pointer to cv::Algorithm
public nint AlgorithmPtr { get; }
Property Value
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
IInputArrayInputArray as supported by Sobel. img can be 1-Channel or 3-Channels.
output
IOutputArrayOutput image with ridges.