Table of Contents

Class ShapeContextDistanceExtractor

Namespace
Emgu.CV.Shape
Assembly
Emgu.CV.dll

Implementation of the Shape Context descriptor and matching algorithm proposed by Belongie et al. in “Shape Matching and Object Recognition Using Shape Contexts” (PAMI 2002).

public class ShapeContextDistanceExtractor : ShapeDistanceExtractor, IDisposable
Inheritance
ShapeContextDistanceExtractor
Implements
Inherited Members

Constructors

ShapeContextDistanceExtractor(HistogramCostExtractor, IShapeTransformer, int, int, float, float, int)

Create a shape context distance extractor

public ShapeContextDistanceExtractor(HistogramCostExtractor comparer, IShapeTransformer transformer, int nAngularBins = 12, int nRadialBins = 4, float innerRadius = 0.2, float outerRadius = 3, int iterations = 3)

Parameters

comparer HistogramCostExtractor

The histogram cost extractor, use ChiHistogramCostExtractor as default

transformer IShapeTransformer

The shape transformer, use ThinPlateSplineSphapeTransformer as default

nAngularBins int

Establish the number of angular bins for the Shape Context Descriptor used in the shape matching pipeline.

nRadialBins int

Establish the number of radial bins for the Shape Context Descriptor used in the shape matching pipeline.

innerRadius float

Set the inner radius of the shape context descriptor.

outerRadius float

Set the outer radius of the shape context descriptor.

iterations int

Iterations

Properties

AngularBins

The number of angular bins in the shape context descriptor.

public int AngularBins { get; set; }

Property Value

int

BendingEnergyWeight

The weight of the Bending Energy in the final distance value.

public float BendingEnergyWeight { get; set; }

Property Value

float

ImageAppearanceWeight

The weight of the appearance cost in the final distance value.

public float ImageAppearanceWeight { get; set; }

Property Value

float

InnerRadius

The value of the inner radius.

public float InnerRadius { get; set; }

Property Value

float

Iterations

The number of iterations

public int Iterations { get; set; }

Property Value

int

OuterRadius

The value of the outer radius.

public float OuterRadius { get; set; }

Property Value

float

RadialBins

The number of radial bins in the shape context descriptor.

public int RadialBins { get; set; }

Property Value

int

RotationInvariant

Rotation Invariant

public bool RotationInvariant { get; set; }

Property Value

bool

ShapeContextWeight

The weight of the shape context distance in the final distance value.

public float ShapeContextWeight { get; set; }

Property Value

float

StdDev

Standard Deviation.

public float StdDev { get; set; }

Property Value

float

Methods

DisposeObject()

Release the memory associated with this shape context distance extractor

protected override void DisposeObject()