MatWarpAffine Method OpenCvSharp Class Library
Applies an affine transformation to an image.

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public Mat WarpAffine(
	InputArray m,
	Size dsize,
	Interpolation flags = Interpolation.Linear,
	BorderType borderMode = BorderType.Constant,
	Nullable<Scalar> borderValue = null
)

Parameters

m
Type: OpenCvSharp.CPlusPlusInputArray
2x3 transformation matrix.
dsize
Type: OpenCvSharp.CPlusPlusSize
size of the output image.
flags (Optional)
Type: OpenCvSharpInterpolation
combination of interpolation methods and the optional flag WARP_INVERSE_MAP that means that M is the inverse transformation (dst -> src) .
borderMode (Optional)
Type: OpenCvSharpBorderType
pixel extrapolation method; when borderMode=BORDER_TRANSPARENT, it means that the pixels in the destination image corresponding to the "outliers" in the source image are not modified by the function.
borderValue (Optional)
Type: SystemNullableScalar
value used in case of a constant border; by default, it is 0.

Return Value

Type: Mat
output image that has the size dsize and the same type as src.
See Also

Reference