From ae86ee59246ce2634ef30435772de2e6ebe492ee Mon Sep 17 00:00:00 2001 From: Victor Erukhimov Date: Sat, 10 Jul 2010 10:02:07 +0000 Subject: [PATCH] Partly relaxed a condition on cornersubpix error reduction --- tests/cv/src/acornerssubpix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/cv/src/acornerssubpix.cpp b/tests/cv/src/acornerssubpix.cpp index 8cbf912e3..698e41ad2 100644 --- a/tests/cv/src/acornerssubpix.cpp +++ b/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;