Ask Your Question

Revision history [back]

That is working, no crashes:

#include <opencv2/opencv.hpp>
#include <windows.h>
#include <iostream>
using namespace std;
using namespace cv;

int main()
{
    Mat img(Mat::zeros(100, 100, CV_8U));
    //imshow("window", img);

    cout<<"hello world!"<<endl;
    system("PAUSE");
    return 0;
}

but when uncoment imshow crashes .. ?!? or add waitKey(0);