C# Класс 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.
Наследование: ShapeDistanceExtractor
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases the resources

ShapeContextDistanceExtractor ( IntPtr p ) : System

Описание методов

Create() публичный статический Метод

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
Результат ShapeContextDistanceExtractor

Dispose() защищенный Метод

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. ///
Результат void

GetImages() публичный Метод

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.
Результат void

SetImages() публичный Метод

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.
Результат void

ShapeContextDistanceExtractor() защищенный Метод

protected ShapeContextDistanceExtractor ( IntPtr p ) : System
p System.IntPtr
Результат System