From f1df79495a2ee8a67316bd43f0f218627657b482 Mon Sep 17 00:00:00 2001 From: "simon.fanetti" <simon.fanetti@etu.hesge.ch> Date: Wed, 9 Sep 2020 14:42:41 +0200 Subject: [PATCH] rename var in projection --- src/components/projection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/projection.cpp b/src/components/projection.cpp index 7d3f76a..d0c30c0 100644 --- a/src/components/projection.cpp +++ b/src/components/projection.cpp @@ -277,7 +277,7 @@ cv::Point2i Projection::rotatePixel(cv::Point2i center, double angle, cv::Point2 cv::Point2i Projection::revertRotatePixel(cv::Point2i center, double angle, cv::Point2i rotatedPixel){ cv::Mat_<float> matRotation = cv::getRotationMatrix2D(center, angle, 1); - cv::Mat tmp = (cv::Mat_<cv::Vec2f>(1, 1) << cv::Vec2f(pixel.x, pixel.y)); + cv::Mat tmp = (cv::Mat_<cv::Vec2f>(1, 1) << cv::Vec2f(rotatedPixel.x, rotatedPixel.y)); cv::Mat invMat; cv::invertAffineTransform(matRotation, invMat); cv::transform(tmp, tmp, invMat); -- GitLab