fixed incorrect boundaries in countNonZero test
This commit is contained in:
parent
a57bc4feea
commit
b8f2011f80
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#include "test_precomp.hpp"
|
#include "test_precomp.hpp"
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <limits>
|
||||||
using namespace cv;
|
using namespace cv;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ private:
|
|||||||
void print_information(int right, int result);
|
void print_information(int right, int result);
|
||||||
};
|
};
|
||||||
|
|
||||||
CV_CountNonZeroTest::CV_CountNonZeroTest(): eps_32(1e-8f), eps_64(1e-16f), src(Mat()), current_type(-1) {}
|
CV_CountNonZeroTest::CV_CountNonZeroTest(): eps_32(std::numeric_limits<float>::min()), eps_64(std::numeric_limits<double>::min()), src(Mat()), current_type(-1) {}
|
||||||
CV_CountNonZeroTest::~CV_CountNonZeroTest() {}
|
CV_CountNonZeroTest::~CV_CountNonZeroTest() {}
|
||||||
|
|
||||||
void CV_CountNonZeroTest::generate_src_data(cv::Size size, int type)
|
void CV_CountNonZeroTest::generate_src_data(cv::Size size, int type)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user