1 | initial version |
Basically you are using a relative path for your image. Put your image in your basic drive and use the absolute path. See if that works out for you.
Also place a debug point after the imread function and check if your Mat element actually contains data.
Also you have probably a type in the name of your image, it is now imgage, and i guess it should be image. This could also be a problem.
Also, change waitKey(5000) to waitKey(0) so that you actually have to push the button to close everything down. You can then see if there is actually something displayed in your window.