Partly relaxed a condition on cornersubpix error reduction

This commit is contained in:
Victor Erukhimov 2010-07-10 10:02:07 +00:00
parent fc9577f8e5
commit ae86ee5924

View File

@ -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;