Partly relaxed a condition on cornersubpix error reduction
This commit is contained in:
parent
fc9577f8e5
commit
ae86ee5924
@ -202,7 +202,8 @@ void CV_ChessboardSubpixelTest::run( int )
|
||||
sum_dist += dist2;
|
||||
count++;
|
||||
|
||||
if(dist1 < dist2)
|
||||
const double max_reduce_factor = 0.8;
|
||||
if(dist1 < dist2*max_reduce_factor)
|
||||
{
|
||||
ts->printf(CvTS::LOG, "findCornerSubPix increases average error!\n");
|
||||
code = CvTS::FAIL_INVALID_OUTPUT;
|
||||
|
Loading…
Reference in New Issue
Block a user