Fix error threshhold in SolvePnPRansac

This commit is contained in:
Vladislav Sovrasov 2016-12-12 13:22:44 +03:00
parent 2fded5d8fb
commit 120531cb46

View File

@ -197,7 +197,7 @@ public:
float* err = _err.getMat().ptr<float>();
for ( i = 0; i < count; ++i)
err[i] = (float)norm( ipoints_ptr[i] - projpoints_ptr[i] );
err[i] = (float)norm( Matx21f(ipoints_ptr[i] - projpoints_ptr[i]), NORM_L2SQR );
}