Ask Your Question

Revision history [back]

You are using a relative path for test.jpg are you sure that the image is located where it is supposed to when you run your executable?

You are probably executing your program from a working directory different than what you are expecting.

Just to be sure, you could try to provide imread the absolute path to the image test.jpg

Good luck!

You are using a relative path for test.jpg are . Are you sure that the image is located where it is supposed to when you run your executable?

You are probably executing your program from a working directory different than what you are expecting.

Just to be sure, you could try to provide imread the absolute path to the image test.jpg

Good luck!