Table of Contents

Class ShapeInvoke

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

Library to invoke functions that belongs to the shape module

public static class ShapeInvoke
Inheritance
ShapeInvoke
Inherited Members

Methods

ApplyTransformation(IShapeTransformer, IInputArray, IOutputArray)

Apply a transformation, given a pre-estimated transformation parameters.

public static float ApplyTransformation(this IShapeTransformer transformer, IInputArray input, IOutputArray output = null)

Parameters

transformer IShapeTransformer

The shape transformer

input IInputArray

Contour (set of points) to apply the transformation.

output IOutputArray

Output contour.

Returns

float

The cost of the transformation.

EstimateTransformation(IShapeTransformer, IInputArray, IInputArray, VectorOfDMatch)

Estimate the transformation parameters of the current transformer algorithm, based on point matches.

public static void EstimateTransformation(this IShapeTransformer transformer, IInputArray transformingShape, IInputArray targetShape, VectorOfDMatch matches)

Parameters

transformer IShapeTransformer

The shape transformer

transformingShape IInputArray

Contour defining first shape.

targetShape IInputArray

Contour defining second shape (Target).

matches VectorOfDMatch

Standard vector of Matches between points.

WarpImage(IShapeTransformer, IInputArray, IOutputArray, Inter, BorderType, MCvScalar)

Apply a transformation, given a pre-estimated transformation parameters, to an Image.

public static void WarpImage(this IShapeTransformer transformer, IInputArray transformingImage, IOutputArray output, Inter flags = Inter.Linear, BorderType boarderMode = BorderType.Constant, MCvScalar borderValue = default)

Parameters

transformer IShapeTransformer

The shape transformer

transformingImage IInputArray

Input image.

output IOutputArray

Output image.

flags Inter

Image interpolation method.

boarderMode BorderType

border style.

borderValue MCvScalar

border value.