Partly relaxed a condition on cornersubpix error reduction

pull/13383/head
Victor Erukhimov 15 years ago
parent fc9577f8e5
commit ae86ee5924
  1. 3
      tests/cv/src/acornerssubpix.cpp

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