@projectUser Frankly speaking i never encounter with that wildcard character
though i tried hard for *.jpg but i won't succeed in that...
try out cvLoadImage that will work for you..
Yeah. At runtime, the code is going to take a look at Desktop/img.jpg and wonder where the crap that is.
I've never used the library you're using, but try, Mat img = imread( "YOURDRIVELETTER:/Documents and Settings/YOURUSERNAME/Desktop/img.jpg", 1 );
Or put the image in the same directory as the executable, and use: Mat img = imread( "img.jpg", 1 );
I know some IDE's (such as Code::Blocks) when running the program with the dedicated 'run' button built into the IDE, it executes the program with a different working dir.
Therefore, if you are using an IDE such as Code::Blocks, try running the executable manually via the folder it's compiled to, with the image file in the same folder, and use Mat img = imread( "img.jpg", 1 );