Table of Contents

Class ShapeContextDistanceExtractor

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Implementation of the Shape Context descriptor and matching algorithm

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

Remarks

proposed by Belongie et al. in "Shape Matching and Object Recognition Using Shape Contexts" (PAMI2002). This implementation is packaged in a generic scheme, in order to allow you the implementation of the common variations of the original pipeline.

Properties

AngularBins

The number of angular bins in the shape context descriptor.

BendingEnergyWeight

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

ImageAppearanceWeight

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

InnerRadius

The value of the inner radius.

Iterations
OuterRadius

The value of the outer radius.

RadialBins

The number of radial bins in the shape context descriptor.

RotationInvariant
ShapeContextWeight

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

StdDev

The value of the standard deviation for the Gaussian window for the image appearance cost.

Methods

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

Complete constructor

GetCostExtractor()

Gets the histogram cost extractor used internally during shape matching.

GetImages(OutputArray, OutputArray)

Get the images that correspond to each shape. This images are used in the calculation of the Image Appearance cost.

GetTransformAlgorithm()

Gets the shape transformer used internally during shape matching.

SetCostExtractor(HistogramCostExtractor)

Sets the histogram cost extractor used internally during shape matching.

SetImages(InputArray, InputArray)

Set the images that correspond to each shape. This images are used in the calculation of the Image Appearance cost.

SetTransformAlgorithm(ShapeTransformer)

Sets the shape transformer used internally during shape matching.