C# Class OpenCvSharp.ShapeContextDistanceExtractor

Implementation of the Shape Context descriptor and matching algorithm
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.
Inheritance: ShapeDistanceExtractor
Mostra file Open project: shimat/opencvsharp

Public Methods

Method Description
Create ( int nAngularBins = 12, int nRadialBins = 4, float innerRadius = 0.2f, float outerRadius = 2, int iterations = 3 ) : ShapeContextDistanceExtractor

Complete constructor

GetImages ( OutputArray image1, OutputArray image2 ) : void

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

SetImages ( InputArray image1, InputArray image2 ) : void

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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the resources

ShapeContextDistanceExtractor ( IntPtr p ) : System

Method Details

Create() public static method

Complete constructor
public static Create ( int nAngularBins = 12, int nRadialBins = 4, float innerRadius = 0.2f, float outerRadius = 2, int iterations = 3 ) : ShapeContextDistanceExtractor
nAngularBins int The number of angular bins in the shape context descriptor.
nRadialBins int The number of radial bins in the shape context descriptor.
innerRadius float The value of the inner radius.
outerRadius float The value of the outer radius.
iterations int
return ShapeContextDistanceExtractor

Dispose() protected method

Releases the resources
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. ///
return void

GetImages() public method

Get the images that correspond to each shape. This images are used in the calculation of the Image Appearance cost.
public GetImages ( OutputArray image1, OutputArray image2 ) : void
image1 OutputArray Image corresponding to the shape defined by contours1.
image2 OutputArray Image corresponding to the shape defined by contours2.
return void

SetImages() public method

Set the images that correspond to each shape. This images are used in the calculation of the Image Appearance cost.
public SetImages ( InputArray image1, InputArray image2 ) : void
image1 InputArray Image corresponding to the shape defined by contours1.
image2 InputArray Image corresponding to the shape defined by contours2.
return void

ShapeContextDistanceExtractor() protected method

protected ShapeContextDistanceExtractor ( IntPtr p ) : System
p System.IntPtr
return System