Fix error threshhold in SolvePnPRansac

pull/7837/head
Vladislav Sovrasov 8 years ago
parent 2fded5d8fb
commit 120531cb46
  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