Commit 188ccac2 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #7837 from sovrasov:solvepnp_ransac_error_thresh_fix

parents 069d51d2 120531cb
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment