perspectiveTransform function

Mat perspectiveTransform(
  1. InputArray src,
  2. InputArray m, {
  3. OutputArray? dst,
})

PerspectiveTransform performs the perspective matrix transformation of vectors.

For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#gad327659ac03e5fd6894b90025e6900a7

Implementation

Mat perspectiveTransform(InputArray src, InputArray m, {OutputArray? dst}) {
  dst ??= Mat.empty();
  cvRun(() => ccore.Mat_PerspectiveTransform(src.ref, dst!.ref, m.ref));
  return dst;
}