mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
ts: refactor OpenCV tests
- removed tr1 usage (dropped in C++17) - moved includes of vector/map/iostream/limits into ts.hpp - require opencv_test + anonymous namespace (added compile check) - fixed norm() usage (must be from cvtest::norm for checks) and other conflict functions - added missing license headers
This commit is contained in:
@@ -4,11 +4,8 @@
|
||||
|
||||
#include "test_precomp.hpp"
|
||||
|
||||
using namespace cv;
|
||||
using namespace std;
|
||||
namespace opencv_test { namespace {
|
||||
|
||||
namespace
|
||||
{
|
||||
static const int fixedShiftU8 = 8;
|
||||
|
||||
template <typename T, int fixedShift>
|
||||
@@ -20,7 +17,6 @@ namespace
|
||||
(((T*)src_pt10)[cn] * xcoeff0 + ((T*)src_pt11)[cn] * xcoeff1) * ycoeff1 ;
|
||||
((T*)dst_pt)[cn] = saturate_cast<T>((val + fixedRound) >> (fixedShift * 2));
|
||||
}
|
||||
}
|
||||
|
||||
TEST(Resize_Bitexact, Linear8U)
|
||||
{
|
||||
@@ -156,4 +152,4 @@ TEST(Resize_Bitexact, Linear8U)
|
||||
}
|
||||
}
|
||||
|
||||
///* End of file. */
|
||||
}} // namespace
|
||||
|
||||
Reference in New Issue
Block a user