mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Merge pull request #1567 from ilya-lavrenov:warn_fix
This commit is contained in:
@@ -49,7 +49,7 @@ namespace cv
|
||||
|
||||
int rotatedRectangleIntersection( const RotatedRect& rect1, const RotatedRect& rect2, OutputArray intersectingRegion )
|
||||
{
|
||||
const float samePointEps = 0.00001; // used to test if two points are the same
|
||||
const float samePointEps = 0.00001f; // used to test if two points are the same
|
||||
|
||||
Point2f vec1[4], vec2[4];
|
||||
Point2f pts1[4], pts2[4];
|
||||
|
||||
@@ -473,8 +473,7 @@ void LineSegmentDetectorImpl::flsd(std::vector<Vec4i>& lines,
|
||||
|
||||
// Search for line segments
|
||||
unsigned int ls_count = 0;
|
||||
unsigned int list_size = list.size();
|
||||
for(unsigned int i = 0; i < list_size; ++i)
|
||||
for(size_t i = 0, list_size = list.size(); i < list_size; ++i)
|
||||
{
|
||||
unsigned int adx = list[i].p.x + list[i].p.y * img_width;
|
||||
if((used.data[adx] == NOTUSED) && (angles_data[adx] != NOTDEF))
|
||||
|
||||
@@ -376,8 +376,8 @@ void CV_RotatedRectangleIntersectionTest::test7()
|
||||
|
||||
rect1.center.x = 0;
|
||||
rect1.center.y = 0;
|
||||
rect1.size.width = 12.34;
|
||||
rect1.size.height = 56.78;
|
||||
rect1.size.width = 12.34f;
|
||||
rect1.size.height = 56.78f;
|
||||
rect1.angle = 0;
|
||||
|
||||
rect2.center.x = 0;
|
||||
@@ -464,7 +464,7 @@ void CV_RotatedRectangleIntersectionTest::test9()
|
||||
rect2.center.x = 2;
|
||||
rect2.center.y = 0;
|
||||
rect2.size.width = 2;
|
||||
rect2.size.height = 123.45;
|
||||
rect2.size.height = 123.45f;
|
||||
rect2.angle = 0;
|
||||
|
||||
vector<Point2f> vertices;
|
||||
|
||||
Reference in New Issue
Block a user