fixed bug #2106; added test

This commit is contained in:
Vadim Pisarevsky
2012-06-27 20:51:48 +00:00
parent 73ce3ef8c1
commit d60b1f2f82
2 changed files with 10 additions and 1 deletions

View File

@@ -758,6 +758,13 @@ bool CV_OperationsTest::TestTemplateMat()
split(mf2, mvf2);
CV_Assert( norm(mvf2[0], mvf[0], CV_C) == 0 &&
norm(mvf2[1], mvf[1], CV_C) == 0 );
{
Mat a(2,2,CV_32F,1.f);
Mat b(1,2,CV_32F,1.f);
Mat c = (a*b.t()).t();
CV_Assert( norm(c, CV_L1) == 4. );
}
}
catch (const test_excep& e)
{