Added define guard for ln10. Fixed some warnings.

This commit is contained in:
Daniel Angelov
2013-07-14 14:29:56 +03:00
parent 22c8010b2d
commit d35601209e
3 changed files with 22 additions and 17 deletions

View File

@@ -83,7 +83,7 @@ void LSDBase::GenerateRotatedRect(Mat& image)
rng.uniform(img_size.height/4, img_size.height*3/4));
Size rect_size(rng.uniform(img_size.width/8, img_size.width/6),
rng.uniform(img_size.height/8, img_size.height/6));
float angle = rng.uniform(0, 360);
float angle = rng.uniform(0.f, 360.f);
Point2f vertices[4];