estimateRigidTransform returns scale 0

asked 2013-08-28 08:26:54 -0500

pkohout gravatar image

updated 2013-08-28 08:29:42 -0500

Hi,

i use estimateRigidTransform, in most cases it works, but sometimes it return a 0 scaleX/Y and transX/Y. Thats my code to calce the values.

Mat M = estimateRigid(...);

transx = M.at<double>(0,2);

transy = M.at<double>(1,2);

scalex = sqrt(pow(M.at<double>(0,0),2)+pow(M.at<double>(0,1),2));

scaley = sqrt(pow(M.at<double>(1,0),2)+pow(M.at<double>(1,1),2));

what doues it mean if the method returns all 0 ? I thought if it find no transfrom the Matrix is empty.

edit retag flag offensive close merge delete