Initial check based on test-contrib branch.
Also reproduced on Windows 8.0 for Itseez master
Repro:
Itseez master
Generate projects for Visual Studio 2012 (cmake -G "Visual Studio 11 2012" <path to src> w/o additional parameters should be enough)
Build solution
Start opencv_test_core.exe. You may use parameter --gtest_filter=*fromMat_ to reduce execution time
test-contrib branch
Set all environment variables and install required tools from this readme
Run the following command from platforms\winrt to generate solution:
setup_winrt.bat WS 8.0 x86 -G "Visual Studio 11 2012"
Build solution
Start opencv_test_core.exe. You may use parameter --gtest_filter=*fromMat_ to reduce execution time
Log:
[----------] 1 test from Core_Matx
[ RUN ] Core_Matx.fromMat_
..\..\..\..\..\..\modules\core\test\test_mat.cpp(1217): error: Value of: 0.
Actual: 0
Expected: norm(a, b, NORM_INF)
Which is: 13
[ FAILED ] Core_Matx.fromMat_ (0 ms)
[----------] 1 test from Core_Matx (0 ms total)
Additional info:
TEST(Core_Matx, fromMat_)
{
Mat_<double> a = (Mat_<double>(2,2) << 10, 11, 12, 13);
cout << " MatA: " << a; // a is correct there
Matx22d b(a);
cout << " MatB: " << b; // b is [0, 0; 0, 0]
ASSERT_EQ( norm(a, b, NORM_INF), 0.);
}
Say, replacing of Matx22d b(a); with explicit initialization via pointer Matx22d b((double *)a.ptr()); makes the test pass. However I think this cannot be considered as fix because test checks work of the constructor b(a)
Windows 8.0 has CoreMatx.fromMat test failure.
Initial check based on test-contrib branch. Also reproduced on Windows 8.0 for Itseez master
Repro:
Itseez master
cmake -G "Visual Studio 11 2012" <path to src>
w/o additional parameters should be enough)--gtest_filter=*fromMat_
to reduce execution timetest-contrib branch
setup_winrt.bat WS 8.0 x86 -G "Visual Studio 11 2012"
--gtest_filter=*fromMat_
to reduce execution timeLog:
Additional info:
Say, replacing of
Matx22d b(a);
with explicit initialization via pointerMatx22d b((double *)a.ptr());
makes the test pass. However I think this cannot be considered as fix because test checks work of the constructor b(a)