Commit ae86ee59 authored by Victor Erukhimov's avatar Victor Erukhimov

Partly relaxed a condition on cornersubpix error reduction

parent fc9577f8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment