Class ShapeInvoke
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
IShapeTransformerThe shape transformer
input
IInputArrayContour (set of points) to apply the transformation.
output
IOutputArrayOutput 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
IShapeTransformerThe shape transformer
transformingShape
IInputArrayContour defining first shape.
targetShape
IInputArrayContour defining second shape (Target).
matches
VectorOfDMatchStandard 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
IShapeTransformerThe shape transformer
transformingImage
IInputArrayInput image.
output
IOutputArrayOutput image.
flags
InterImage interpolation method.
boarderMode
BorderTypeborder style.
borderValue
MCvScalarborder value.