Merge pull request #7837 from sovrasov:solvepnp_ransac_error_thresh_fix

This commit is contained in:
Alexander Alekhin 2016-12-13 10:17:40 +00:00
commit 188ccac2f3

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 );
}