X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=tests%2Fcv%2Fsrc%2Faconvhull.cpp;h=64b486ea8b3844e9c34e98d17ae139b92e1dbc13;hb=HEAD;hp=551cdef2b8a8724e3189c4e72ef67bfc0d5b5596;hpb=454138ff8a20f6edb9b65a910101403d8b520643;p=opencv diff --git a/tests/cv/src/aconvhull.cpp b/tests/cv/src/aconvhull.cpp index 551cdef..64b486e 100644 --- a/tests/cv/src/aconvhull.cpp +++ b/tests/cv/src/aconvhull.cpp @@ -135,9 +135,9 @@ cvTsPointPolygonTest( CvPoint2D32f pt, const CvPoint2D32f* vv, int n, int* _idx= break; } - if( v0.y <= pt.y && v.y <= pt.y || - v0.y > pt.y && v.y > pt.y || - v0.x < pt.x && v.x < pt.x ) + if( (v0.y <= pt.y && v.y <= pt.y) || + (v0.y > pt.y && v.y > pt.y) || + (v0.x < pt.x && v.x < pt.x) ) continue; dist_num = dy1*dx - dx1*dy; @@ -815,7 +815,7 @@ int CV_MinCircleTest::validate_test_results( int test_case_idx ) v[j++] = p[i]; } - if( point_count >= 2 && (j < 2 || j == 2 && cvTsDist(v[0],v[1]) < (radius-1)*2/eps) ) + if( point_count >= 2 && (j < 2 || (j == 2 && cvTsDist(v[0],v[1]) < (radius-1)*2/eps)) ) { ts->printf( CvTS::LOG, "There should be at at least 3 points near the circle boundary or 2 points on the diameter\n" ); @@ -1435,7 +1435,7 @@ CV_ContourMomentsTest::CV_ContourMomentsTest(): { min_log_size = 3; max_log_size = 8; - max_max_r_scale = 25; + max_max_r_scale = 15; low_high_range = 200; enable_flt_points = false; }