Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

2 problems there:

  • you don't initialize openFileDialog1 properly. so it has no filename yet

  • you're reading an img into a local var ( cv::Mat img; )

    it will go out of scope, and your program will crash.

    you'll probably will have to make cv::Mat img a member of your Form class