Merge pull request #7837 from sovrasov:solvepnp_ransac_error_thresh_fix

pull/7760/head
Alexander Alekhin 8 years ago
commit 188ccac2f3
  1. 2
      modules/calib3d/src/solvepnp.cpp

@ -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…
Cancel
Save