From: Ivan Korolev Date: Fri, 14 Jun 2013 06:43:20 +0000 (+0400) Subject: Fixed a bug #2405 X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1314^2~1238^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58fa401b4d0cefe763e4b307802f34c96a942a44;p=platform%2Fupstream%2Fopencv.git Fixed a bug #2405 --- diff --git a/modules/stitching/src/motion_estimators.cpp b/modules/stitching/src/motion_estimators.cpp index ab27a46..c873bc7 100644 --- a/modules/stitching/src/motion_estimators.cpp +++ b/modules/stitching/src/motion_estimators.cpp @@ -69,13 +69,13 @@ struct CalcRotation K_from(0,0) = cameras[edge.from].focal; K_from(1,1) = cameras[edge.from].focal * cameras[edge.from].aspect; K_from(0,2) = cameras[edge.from].ppx; - K_from(0,2) = cameras[edge.from].ppy; + K_from(1,2) = cameras[edge.from].ppy; Mat_ K_to = Mat::eye(3, 3, CV_64F); K_to(0,0) = cameras[edge.to].focal; K_to(1,1) = cameras[edge.to].focal * cameras[edge.to].aspect; K_to(0,2) = cameras[edge.to].ppx; - K_to(0,2) = cameras[edge.to].ppy; + K_to(1,2) = cameras[edge.to].ppy; Mat R = K_from.inv() * pairwise_matches[pair_idx].H.inv() * K_to; cameras[edge.to].R = cameras[edge.from].R * R;