diff --git a/src/components/projection.cpp b/src/components/projection.cpp index 7d3f76aedcf2cb0fa125879a60eb51b4ef1fa8e7..d0c30c0dfa4921999c3703cdbcabfc641683bbc1 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);