Ask Your Question

Revision history [back]

Check two things:

  1. Are you using vc11? vc10 is only supported in visual studio 2010, which means that you should adapt your path variable and your project settings to include the correct directories for the lib and dll files.
  2. When you read in your image, you are using a relative path. Microsoft has a habbit of changing the working directory between versions. Make sure to start with an absolete path like C:/test_image.png.

Your error is basically pointing to the fact that you want to visualize a Mat object that doesn't exist so I am guessing it is the second problem.