Ask Your Question

Revision history [back]

Error convert static array to cv::Mat

I use this sample form opencv toturial for convert static array to cv::Mat

int a[5] ={1,2,3,4,5};

    Mat L(3,a, CV_32SC1(1), Scalar::all(0));
    cout << L;

But the L variable in invalid. What is reason?is it BUG?

Error convert static array to cv::Mat

I use this sample form opencv toturial for convert static array to cv::Mat

int a[5] ={1,2,3,4,5};

    Mat L(3,a, CV_32SC1(1), CV_32SC(1), Scalar::all(0));
    cout << L;

But the L variable in invalid. What is reason?is it BUG?

Error convert static array to cv::Mat

I use this sample form opencv toturial OpenCV tutorial for convert static array to cv::Mat

int a[5] ={1,2,3,4,5};

    Mat L(3,a, CV_32SC(1), Scalar::all(0));
    cout << L;

But the L variable in invalid. What is reason?is it BUG?