Commit a879e1fc authored by Rohit Girdhar's avatar Rohit Girdhar

fixed warnings

parent 613a1735
......@@ -1566,8 +1566,8 @@ RotatedRect::RotatedRect(const std::vector<Point2f>& _points)
int ht_i = (wd_i + 1) % 2;
float _angle = atan(vecs[wd_i][1] / vecs[wd_i][0]) * 180.0f / (float) CV_PI;
float _width = norm(vecs[wd_i]);
float _height = norm(vecs[ht_i]);
float _width = (float) norm(vecs[wd_i]);
float _height = (float) norm(vecs[ht_i]);
center = _center;
size = Size2f(_width, _height);
......
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