i get this message when i run this output of Cimg program
#include "CImg.h"
using namespace cimg_library;
int main(int argc, char * argv[]) {
const char * input_file = "Lenna.jpg";
CImg<unsigned char> * input = new CImg<unsigned char>(input_file);
CImgList<unsigned char> fft = input->get_FFT();
CImg<unsigned char>::FFT(fft[0], fft[1], false);
fft[0].save("fft.jpg");
return 1;
}
I initially got a blank image. but then I installed ImageMagick. After that when I run the output I get this message:
convert: no decode delegate for this image format `JPG' @ error/constitute.c/ReadImage/572.
convert: no images defined `pnm:-' @ error/convert.c/ConvertImageCommand/3304.
convert: no decode delegate for this image format `JPG' @ error/constitute.c/ReadImage/572.
convert: no images defined `pnm:-' @ error/convert.c/ConvertImageCommand/3304.
convert: no decode delegate for this image format `JPG' @ error/constitute.c/ReadImage/572.
convert: no images defined `pnm:-' @ error/convert.c/ConvertImageCommand/3304.
[CImg] *** CImgIOException *** [instance(0,0,0,0,(nil),non-shared)] CImg<unsigned char>::load(): Failed to recognize format of file 'Lenna.jpg'.
terminate called after throwing an instance of 'cimg_library::CImgIOException'
what(): [instance(0,0,0,0,(nil),non-shared)] CImg<unsigned char>::load(): Failed to recognize format of file 'Lenna.jpg'.
Aborted (core dumped)
Not sure what this is.