Class ShapeContextDistanceExtractor
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
HistogramCostExtractorThe histogram cost extractor, use ChiHistogramCostExtractor as default
transformer
IShapeTransformerThe shape transformer, use ThinPlateSplineSphapeTransformer as default
nAngularBins
intEstablish the number of angular bins for the Shape Context Descriptor used in the shape matching pipeline.
nRadialBins
intEstablish the number of radial bins for the Shape Context Descriptor used in the shape matching pipeline.
innerRadius
floatSet the inner radius of the shape context descriptor.
outerRadius
floatSet the outer radius of the shape context descriptor.
iterations
intIterations
Properties
AngularBins
The number of angular bins in the shape context descriptor.
public int AngularBins { get; set; }
Property Value
BendingEnergyWeight
The weight of the Bending Energy in the final distance value.
public float BendingEnergyWeight { get; set; }
Property Value
ImageAppearanceWeight
The weight of the appearance cost in the final distance value.
public float ImageAppearanceWeight { get; set; }
Property Value
InnerRadius
The value of the inner radius.
public float InnerRadius { get; set; }
Property Value
Iterations
The number of iterations
public int Iterations { get; set; }
Property Value
OuterRadius
The value of the outer radius.
public float OuterRadius { get; set; }
Property Value
RadialBins
The number of radial bins in the shape context descriptor.
public int RadialBins { get; set; }
Property Value
RotationInvariant
Rotation Invariant
public bool RotationInvariant { get; set; }
Property Value
ShapeContextWeight
The weight of the shape context distance in the final distance value.
public float ShapeContextWeight { get; set; }
Property Value
StdDev
Standard Deviation.
public float StdDev { get; set; }
Property Value
Methods
DisposeObject()
Release the memory associated with this shape context distance extractor
protected override void DisposeObject()