warpAffine function
Mat
warpAffine(
- InputArray src,
- InputArray M,
- (int, int) dsize, {
- OutputArray? dst,
- int flags = INTER_LINEAR,
- int borderMode = BORDER_CONSTANT,
- Scalar? borderValue,
WarpAffine applies an affine transformation to an image.
For further details, please see: https:///docs.opencv.org/master/da/d54/group__imgproc__transform.html#ga0203d9ee5fcd28d40dbc4a1ea4451983
Implementation
Mat warpAffine(
InputArray src,
InputArray M,
(int, int) dsize, {
OutputArray? dst,
int flags = INTER_LINEAR,
int borderMode = BORDER_CONSTANT,
Scalar? borderValue,
}) {
dst ??= Mat.empty();
borderValue ??= Scalar();
cvRun(
() => cimgproc.WarpAffineWithParams(
src.ref,
dst!.ref,
M.ref,
dsize.cvd.ref,
flags,
borderMode,
borderValue!.ref,
),
);
return dst;
}