remap function
Mat
remap(
- InputArray src,
- InputArray map1,
- InputArray map2,
- int interpolation, {
- OutputArray? dst,
- int borderMode = BORDER_CONSTANT,
- Scalar? borderValue,
Remap applies a generic geometrical transformation to an image.
For further details, please see: https:///docs.opencv.org/master/da/d54/group__imgproc__transform.html#gab75ef31ce5cdfb5c44b6da5f3b908ea4
Implementation
Mat remap(
InputArray src,
InputArray map1,
InputArray map2,
int interpolation, {
OutputArray? dst,
int borderMode = BORDER_CONSTANT,
Scalar? borderValue,
}) {
borderValue ??= Scalar();
dst ??= Mat.empty();
cvRun(() =>
cffi.Remap(src.ref, dst!.ref, map1.ref, map2.ref, interpolation, borderMode, borderValue!.ref));
return dst;
}