Hi,
I wrote a small program using CImg library and g++ compiler and I installed imagemagick v6.5.6.
The code is as follows
Code:#include "CImg.h" using namespace cimg_library; int main(){ CImg <unsigned char> img("train.jpg"); img.display("Train"); return 0; }
The program passes compliation but when I run the program, an error message
"CImg <unsigned char>:: load() "train.jpg", format not recognized" prompts me.
What could be cause? Thanks.



Adv Reply


Bookmarks