Table of Contents

Class EdgeBoxes

Namespace
OpenCvSharp.XImgProc
Assembly
OpenCvSharp.dll

Class implementing EdgeBoxes algorithm from @cite ZitnickECCV14edgeBoxes

public class EdgeBoxes : Algorithm, IDisposable, ICvPtrHolder
Inheritance
EdgeBoxes
Implements
Inherited Members

Constructors

EdgeBoxes(nint)

Creates instance by raw pointer

protected EdgeBoxes(nint p)

Parameters

p nint

Properties

Alpha

Gets or sets the step size of sliding window search.

public virtual float Alpha { get; set; }

Property Value

float

Beta

Gets or sets the nms threshold for object proposals.

public virtual float Beta { get; set; }

Property Value

float

ClusterMinMag

Gets or sets the cluster min magnitude.

public virtual float ClusterMinMag { get; set; }

Property Value

float

EdgeMergeThr

Gets or sets the edge merge threshold.

public virtual float EdgeMergeThr { get; set; }

Property Value

float

EdgeMinMag

Gets or sets the edge min magnitude.

public virtual float EdgeMinMag { get; set; }

Property Value

float

Eta

Gets or sets adaptation rate for nms threshold.

public virtual float Eta { get; set; }

Property Value

float

Gamma

Gets or sets the affinity sensitivity.

public virtual float Gamma { get; set; }

Property Value

float

Kappa

Gets or sets the scale sensitivity.

public virtual float Kappa { get; set; }

Property Value

float

MaxAspectRatio

Gets or sets the max aspect ratio of boxes.

public virtual float MaxAspectRatio { get; set; }

Property Value

float

MaxBoxes

Gets or sets the max number of boxes to detect.

public virtual int MaxBoxes { get; set; }

Property Value

int

MinBoxArea

Gets or sets the minimum area of boxes.

public virtual float MinBoxArea { get; set; }

Property Value

float

MinScore

Gets or sets the min score of boxes to detect.

public virtual float MinScore { get; set; }

Property Value

float

Methods

Create(float, float, float, float, int, float, float, float, float, float, float, float)

Creates a EdgeBoxes

public static EdgeBoxes Create(float alpha = 0.65, float beta = 0.75, float eta = 1, float minScore = 0.01, int maxBoxes = 10000, float edgeMinMag = 0.1, float edgeMergeThr = 0.5, float clusterMinMag = 0.5, float maxAspectRatio = 3, float minBoxArea = 1000, float gamma = 2, float kappa = 1.5)

Parameters

alpha float

step size of sliding window search.

beta float

nms threshold for object proposals.

eta float

adaptation rate for nms threshold.

minScore float

min score of boxes to detect.

maxBoxes int

max number of boxes to detect.

edgeMinMag float

edge min magnitude. Increase to trade off accuracy for speed.

edgeMergeThr float

edge merge threshold. Increase to trade off accuracy for speed.

clusterMinMag float

cluster min magnitude. Increase to trade off accuracy for speed.

maxAspectRatio float

max aspect ratio of boxes.

minBoxArea float

minimum area of boxes.

gamma float

affinity sensitivity.

kappa float

scale sensitivity.

Returns

EdgeBoxes

DisposeManaged()

Releases managed resources

protected override void DisposeManaged()

GetBoundingBoxes(InputArray, InputArray, out Rect[])

Returns array containing proposal boxes.

public virtual void GetBoundingBoxes(InputArray edgeMap, InputArray orientationMap, out Rect[] boxes)

Parameters

edgeMap InputArray

edge image.

orientationMap InputArray

orientation map.

boxes Rect[]

proposal boxes.