Fixed 2 spontaneously failing tests

pull/13383/head
Andrey Kamaev 13 years ago
parent f5152500be
commit 700c1665c9
  1. 2
      modules/core/test/test_arithm.cpp
  2. 2
      modules/imgproc/test/test_boundingrect.cpp

@ -1476,7 +1476,7 @@ protected:
}
Mat d1;
d.convertTo(d1, depth);
CV_Assert( norm(c, d1, CV_C) == 0 );
CV_Assert( norm(c, d1, CV_C) <= DBL_EPSILON );
}
}
catch(...)

@ -89,7 +89,7 @@ template <typename T> cv::Rect CV_BoundingRectTest::get_bounding_rect(const vect
max_h = std::max<T>(src.at(i).y, max_h);
}
return Rect((int)min_w, (int)min_h, (int)(floor(1.0*(max_w-min_w)) + 1), (int)(floor(1.0*(max_h-min_h)) + 1));
return Rect((int)min_w, (int)min_h, (int)max_w-(int)min_w + 1, (int)max_h-(int)min_h + 1);
}
template <typename T> bool CV_BoundingRectTest::checking_function_work(vector <Point_<T> >& src, int type)

Loading…
Cancel
Save