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;
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" );
{
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;
}