projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
613a173
)
fixed warnings
author
Rohit Girdhar
<rohit@iiith>
Mon, 17 Feb 2014 13:30:36 +0000
(19:00 +0530)
committer
Rohit Girdhar
<rohit@iiith>
Mon, 17 Feb 2014 13:30:36 +0000
(19:00 +0530)
modules/core/include/opencv2/core/types.hpp
patch
|
blob
|
history
diff --git
a/modules/core/include/opencv2/core/types.hpp
b/modules/core/include/opencv2/core/types.hpp
index
bfc6381
..
2a10703
100644
(file)
--- a/
modules/core/include/opencv2/core/types.hpp
+++ b/
modules/core/include/opencv2/core/types.hpp
@@
-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);