modules/core/test/test_mat.cpp
// Can't fix without duty hacks or broken user code (PR #4159)
Can't fix without duty hacks or broken user code (PR #4159)
Can ' t fix without duty hacks or broken user code ( PR #4159 )
TEST(Core_Mat_vector, DISABLED_OutputArray_create_getMat)
{
    cv::Mat_<uchar> src_base(5, 1);
    std::vector<uchar> dst8;
    src_base << 1, 2, 3, 4, 5;
    Mat src(src_base);
    OutputArray _dst(dst8);
    {
        _dst.create(src.rows, src.cols, src.type());
        Mat dst = _dst.getMat();
        EXPECT_EQ(src.dims, dst.dims);
        EXPECT_EQ(src.cols, dst.cols);
        EXPECT_EQ(src.rows, dst.rows);
    }
}
TEST ( Core_Mat_vector , DISABLED_OutputArray_create_getMat ) { cv :: Mat_ < uchar > src_base ( 5 , 1 ) ; std :: vector < uchar > dst8 ; src_base << 1 , 2 , 3 , 4 , 5 ; Mat src ( src_base ) ; OutputArray _dst ( dst8 ) ; { _dst . create ( src . rows , src . cols , src . type ( ) ) ; Mat dst = _dst . getMat ( ) ; EXPECT_EQ ( src . dims , dst . dims ) ; EXPECT_EQ ( src . cols , dst . cols ) ; EXPECT_EQ ( src . rows , dst . rows ) ; } }
Can't fix without duty hacks or broken user code (PR #4159)
Can ' t fix without duty hacks or broken user code ( PR #4159 )