|
|
@ -959,9 +959,16 @@ bool CV_OperationsTest::operations1() |
|
|
|
minval == -7 && maxval == 12)) |
|
|
|
minval == -7 && maxval == 12)) |
|
|
|
throw test_excep(); |
|
|
|
throw test_excep(); |
|
|
|
|
|
|
|
|
|
|
|
Matx33f b(1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f, 9.f), c; |
|
|
|
Matx33f b(1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f, 9.f); |
|
|
|
|
|
|
|
Mat c; |
|
|
|
add(Mat::zeros(3, 3, CV_32F), b, c); |
|
|
|
add(Mat::zeros(3, 3, CV_32F), b, c); |
|
|
|
CV_Assert( norm(b, c, CV_C) == 0 ); |
|
|
|
CV_Assert( norm(b, c, CV_C) == 0 ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add(Mat::zeros(3, 3, CV_64F), b, c, noArray(), c.type()); |
|
|
|
|
|
|
|
CV_Assert( norm(b, c, CV_C) == 0 ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add(Mat::zeros(6, 1, CV_64F), 1, c, noArray(), c.type()); |
|
|
|
|
|
|
|
CV_Assert( norm(Matx61f(1.f, 1.f, 1.f, 1.f, 1.f, 1.f), c, CV_C) == 0 ); |
|
|
|
} |
|
|
|
} |
|
|
|
catch(const test_excep&) |
|
|
|
catch(const test_excep&) |
|
|
|
{ |
|
|
|
{ |
|
|
|