Applies an affine transformation to an image.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic static void WarpAffine(
InputArray src,
OutputArray dst,
InputArray m,
Size dsize,
InterpolationFlags flags = InterpolationFlags.Linear,
BorderTypes borderMode = BorderTypes.Constant,
Nullable<Scalar> borderValue = null
)
Public Shared Sub WarpAffine (
src As InputArray,
dst As OutputArray,
m As InputArray,
dsize As Size,
Optional flags As InterpolationFlags = InterpolationFlags.Linear,
Optional borderMode As BorderTypes = BorderTypes.Constant,
Optional borderValue As Nullable(Of Scalar) = Nothing
)
public:
static void WarpAffine(
InputArray^ src,
OutputArray^ dst,
InputArray^ m,
Size dsize,
InterpolationFlags flags = InterpolationFlags::Linear,
BorderTypes borderMode = BorderTypes::Constant,
Nullable<Scalar> borderValue = nullptr
)
static member WarpAffine :
src : InputArray *
dst : OutputArray *
m : InputArray *
dsize : Size *
?flags : InterpolationFlags *
?borderMode : BorderTypes *
?borderValue : Nullable<Scalar>
(* Defaults:
let _flags = defaultArg flags InterpolationFlags.Linear
let _borderMode = defaultArg borderMode BorderTypes.Constant
let _borderValue = defaultArg borderValue null
*)
-> unit
OpenCvSharp.Cv2.WarpAffine = function(src, dst, m, dsize, flags, borderMode, borderValue);
Parameters
- src
- Type: OpenCvSharpInputArray
input image. - dst
- Type: OpenCvSharpOutputArray
output image that has the size dsize and the same type as src. - m
- Type: OpenCvSharpInputArray
2x3 transformation matrix. - dsize
- Type: OpenCvSharpSize
size of the output image. - flags (Optional)
- Type: OpenCvSharpInterpolationFlags
combination of interpolation methods and the optional flag
WARP_INVERSE_MAP that means that M is the inverse transformation (dst -> src) . - borderMode (Optional)
- Type: OpenCvSharpBorderTypes
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.
See Also