Class StructuredEdgeDetection
Class implementing edge detection algorithm from @cite Dollar2013 :
Implements
Inherited Members
Namespace: OpenCvSharp.XImgProc
Assembly: OpenCvSharp.dll
Syntax
public class StructuredEdgeDetection : Algorithm, ICvPtrHolder
Constructors
| Improve this Doc View SourceStructuredEdgeDetection(IntPtr)
Creates instance by raw pointer
Declaration
protected StructuredEdgeDetection(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | p |
Methods
| Improve this Doc View SourceComputeOrientation(InputArray, OutputArray)
The function computes orientation from edge image.
Declaration
public virtual void ComputeOrientation(InputArray src, OutputArray dst)
Parameters
Type | Name | Description |
---|---|---|
InputArray | src | edge image. |
OutputArray | dst | orientation image. |
Create(String, RFFeatureGetter)
Creates a StructuredEdgeDetection
Declaration
public static StructuredEdgeDetection Create(string model, RFFeatureGetter howToGetFeatures = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | model | name of the file where the model is stored |
RFFeatureGetter | howToGetFeatures | optional object inheriting from RFFeatureGetter. You need it only if you would like to train your own forest, pass null otherwise |
Returns
Type | Description |
---|---|
StructuredEdgeDetection |
DetectEdges(InputArray, OutputArray)
The function detects edges in src and draw them to dst. The algorithm underlies this function is much more robust to texture presence, than common approaches, e.g.Sobel
Declaration
public virtual void DetectEdges(InputArray src, OutputArray dst)
Parameters
Type | Name | Description |
---|---|---|
InputArray | src | source image (RGB, float, in [0;1]) to detect edges |
OutputArray | dst | destination image (grayscale, float, in [0;1]) where edges are drawn |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()
Overrides
| Improve this Doc View SourceEdgesNms(InputArray, InputArray, OutputArray, Int32, Int32, Single, Boolean)
The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.
Declaration
public virtual void EdgesNms(InputArray edgeImage, InputArray orientationImage, OutputArray dst, int r = 2, int s = 0, float m = 1F, bool isParallel = true)
Parameters
Type | Name | Description |
---|---|---|
InputArray | edgeImage | edge image from detectEdges function. |
InputArray | orientationImage | orientation image from computeOrientation function. |
OutputArray | dst | suppressed image (grayscale, float, in [0;1]) |
System.Int32 | r | radius for NMS suppression. |
System.Int32 | s | radius for boundary suppression. |
System.Single | m | multiplier for conservative suppression. |
System.Boolean | isParallel | enables/disables parallel computing. |
GetBoundingBoxes(InputArray, InputArray, out Rect[])
Returns array containing proposal boxes.
Declaration
public virtual void GetBoundingBoxes(InputArray edgeMap, InputArray orientationMap, out Rect[] boxes)
Parameters
Type | Name | Description |
---|---|---|
InputArray | edgeMap | edge image. |
InputArray | orientationMap | orientation map. |
OpenCvSharp.Rect[] | boxes | proposal boxes. |