Show / Hide Table of Contents

Class StructuredEdgeDetection

Class implementing edge detection algorithm from @cite Dollar2013 :

Inheritance
System.Object
DisposableObject
DisposableCvObject
Algorithm
StructuredEdgeDetection
Implements
ICvPtrHolder
Inherited Members
Algorithm.Write(FileStorage)
Algorithm.Read(FileNode)
Algorithm.Empty
Algorithm.Save(String)
Algorithm.GetDefaultName()
DisposableCvObject.ptr
DisposableCvObject.CvPtr
DisposableObject.DataHandle
DisposableObject.IsDisposed
DisposableObject.IsEnabledDispose
DisposableObject.AllocatedMemory
DisposableObject.AllocatedMemorySize
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.AllocGCHandle(Object)
DisposableObject.AllocMemory(Int32)
DisposableObject.NotifyMemoryPressure(Int64)
DisposableObject.ThrowIfDisposed()
Namespace: OpenCvSharp.XImgProc
Assembly: OpenCvSharp.dll
Syntax
public class StructuredEdgeDetection : Algorithm, ICvPtrHolder

Constructors

| Improve this Doc View Source

StructuredEdgeDetection(IntPtr)

Creates instance by raw pointer

Declaration
protected StructuredEdgeDetection(IntPtr p)
Parameters
Type Name Description
IntPtr p

Methods

| Improve this Doc View Source

ComputeOrientation(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.

| Improve this Doc View Source

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
| Improve this Doc View Source

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

| Improve this Doc View Source

DisposeManaged()

Releases managed resources

Declaration
protected override void DisposeManaged()
Overrides
DisposableObject.DisposeManaged()
| Improve this Doc View Source

DisposeUnmanaged()

Declaration
protected override void DisposeUnmanaged()
Overrides
DisposableCvObject.DisposeUnmanaged()
| Improve this Doc View Source

EdgesNms(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.

| Improve this Doc View Source

Get()

Declaration
public override IntPtr Get()
Returns
Type Description
IntPtr
| Improve this Doc View Source

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.

Implements

ICvPtrHolder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX