Fix error threshhold in SolvePnPRansac
This commit is contained in:
parent
2fded5d8fb
commit
120531cb46
@ -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