mirror of
https://github.com/opencv/opencv.git
synced 2024-12-01 23:30:06 +08:00
Merge pull request #7837 from sovrasov:solvepnp_ransac_error_thresh_fix
This commit is contained in:
commit
188ccac2f3
@ -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 );
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user