inverseTransform method

  1. @override
Point<num> inverseTransform(
  1. Point<num> point,
  2. int inputImageHeight,
  3. int inputImageWidth
)
override

Transforms a point from coordinates system of the result image back to the one of the input image.

Implementation

@override
Point inverseTransform(
    Point point, int inputImageHeight, int inputImageWidth) {
  int inverseNumRotation = (4 - _numRotation) % 4;
  int height = getOutputImageHeight(inputImageHeight, inputImageWidth);
  int width = getOutputImageWidth(inputImageHeight, inputImageWidth);
  return transformImpl(point, height, width, inverseNumRotation);
}