Skip to content
Snippets Groups Projects
Commit f1df7949 authored by simon.fanetti's avatar simon.fanetti
Browse files

rename var in projection

parent 248f44a7
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment