|
|
|
@ -111,8 +111,8 @@ void CV_GpuArithmTest::run( int ) |
|
|
|
|
int testResult = CvTS::OK; |
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
const int types[] = {CV_8UC1, CV_8UC3, CV_8UC4, CV_32SC1, CV_32FC1}; |
|
|
|
|
const char* type_names[] = {"CV_8UC1", "CV_8UC3", "CV_8UC4", "CV_32SC1", "CV_32FC1"}; |
|
|
|
|
const int types[] = {CV_8UC1, CV_8UC3, CV_8UC4, CV_32FC1}; |
|
|
|
|
const char* type_names[] = {"CV_8UC1", "CV_8UC3", "CV_8UC4", "CV_32FC1"}; |
|
|
|
|
const int type_count = sizeof(types)/sizeof(types[0]); |
|
|
|
|
|
|
|
|
|
//run tests
|
|
|
|
@ -148,7 +148,7 @@ struct CV_GpuNppImageAddTest : public CV_GpuArithmTest |
|
|
|
|
|
|
|
|
|
virtual int test(const Mat& mat1, const Mat& mat2) |
|
|
|
|
{ |
|
|
|
|
if (mat1.type() != CV_8UC1 && mat1.type() != CV_8UC4 && mat1.type() != CV_32SC1 && mat1.type() != CV_32FC1) |
|
|
|
|
if (mat1.type() != CV_8UC1 && mat1.type() != CV_8UC4 && mat1.type() != CV_32FC1) |
|
|
|
|
{ |
|
|
|
|
ts->printf(CvTS::LOG, "\nUnsupported type\n"); |
|
|
|
|
return CvTS::OK; |
|
|
|
@ -174,7 +174,7 @@ struct CV_GpuNppImageSubtractTest : public CV_GpuArithmTest |
|
|
|
|
|
|
|
|
|
int test( const Mat& mat1, const Mat& mat2 ) |
|
|
|
|
{ |
|
|
|
|
if (mat1.type() != CV_8UC1 && mat1.type() != CV_8UC4 && mat1.type() != CV_32SC1 && mat1.type() != CV_32FC1) |
|
|
|
|
if (mat1.type() != CV_8UC1 && mat1.type() != CV_8UC4 && mat1.type() != CV_32FC1) |
|
|
|
|
{ |
|
|
|
|
ts->printf(CvTS::LOG, "\nUnsupported type\n"); |
|
|
|
|
return CvTS::OK; |
|
|
|
@ -200,7 +200,7 @@ struct CV_GpuNppImageMultiplyTest : public CV_GpuArithmTest |
|
|
|
|
|
|
|
|
|
int test( const Mat& mat1, const Mat& mat2 ) |
|
|
|
|
{ |
|
|
|
|
if (mat1.type() != CV_8UC1 && mat1.type() != CV_8UC4 && mat1.type() != CV_32SC1 && mat1.type() != CV_32FC1) |
|
|
|
|
if (mat1.type() != CV_8UC1 && mat1.type() != CV_8UC4 && mat1.type() != CV_32FC1) |
|
|
|
|
{ |
|
|
|
|
ts->printf(CvTS::LOG, "\nUnsupported type\n"); |
|
|
|
|
return CvTS::OK; |
|
|
|
@ -226,7 +226,7 @@ struct CV_GpuNppImageDivideTest : public CV_GpuArithmTest |
|
|
|
|
|
|
|
|
|
int test( const Mat& mat1, const Mat& mat2 ) |
|
|
|
|
{ |
|
|
|
|
if (mat1.type() != CV_8UC1 && mat1.type() != CV_8UC4 && mat1.type() != CV_32SC1 && mat1.type() != CV_32FC1) |
|
|
|
|
if (mat1.type() != CV_8UC1 && mat1.type() != CV_8UC4 && mat1.type() != CV_32FC1) |
|
|
|
|
{ |
|
|
|
|
ts->printf(CvTS::LOG, "\nUnsupported type\n"); |
|
|
|
|
return CvTS::OK; |
|
|
|
@ -277,7 +277,7 @@ struct CV_GpuNppImageAbsdiffTest : public CV_GpuArithmTest |
|
|
|
|
|
|
|
|
|
int test( const Mat& mat1, const Mat& mat2 ) |
|
|
|
|
{ |
|
|
|
|
if (mat1.type() != CV_8UC1 && mat1.type() != CV_8UC4 && mat1.type() != CV_32SC1 && mat1.type() != CV_32FC1) |
|
|
|
|
if (mat1.type() != CV_8UC1 && mat1.type() != CV_8UC4 && mat1.type() != CV_32FC1) |
|
|
|
|
{ |
|
|
|
|
ts->printf(CvTS::LOG, "\nUnsupported type\n"); |
|
|
|
|
return CvTS::OK; |
|
|
|
|