Class RidgeDetectionFilter
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
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class RidgeDetectionFilter : Algorithm, ICvPtrHolder
Constructors
| Improve this Doc View SourceRidgeDetectionFilter(IntPtr)
Constructor
Declaration
protected RidgeDetectionFilter(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | p |
Methods
| Improve this Doc View SourceCreate(Nullable<MatType>, Int32, Int32, Int32, Nullable<MatType>, Double, Double, BorderTypes)
Create pointer to the Ridge detection filter.
Declaration
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.Reflect101)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<OpenCvSharp.MatType> | ddepth | Specifies output image depth. Defualt is CV_32FC1 |
System.Int32 | dx | Order of derivative x, default is 1 |
System.Int32 | dy | Order of derivative y, default is 1 |
System.Int32 | ksize | Sobel kernel size , default is 3 |
System.Nullable<OpenCvSharp.MatType> | outDtype | Converted format for output, default is CV_8UC1 |
System.Double | scale | Optional scale value for derivative values, default is 1 |
System.Double | delta | Optional bias added to output, default is 0 |
BorderTypes | borderType | Pixel extrapolation method, default is BORDER_DEFAULT |
Returns
Type | Description |
---|---|
RidgeDetectionFilter |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()
Overrides
| Improve this Doc View SourceGetRidgeFilteredImage(InputArray, OutputArray)
Apply Ridge detection filter on input image.
Declaration
public virtual void GetRidgeFilteredImage(InputArray src, OutputArray dst)
Parameters
Type | Name | Description |
---|---|---|
InputArray | src | InputArray as supported by Sobel. img can be 1-Channel or 3-Channels. |
OutputArray | dst | OutputAray of structure as RidgeDetectionFilter::ddepth. Output image with ridges. |