问题描述
当我运行 Cimg 程序的这个输出时,我收到这条消息
#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;
}
我最初得到的是一张空白图像。但后来我安装了 ImageMagick。之后,当我运行输出时,我收到此消息:
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,(nil),non-shared)] CImg<unsigned char>::load(): @R_404_4761@ to recognize format of file 'Lenna.jpg'.
terminate called after throwing an instance of 'cimg_library::CImgIOException'
what(): [instance(0,non-shared)] CImg<unsigned char>::load(): @R_404_4761@ to recognize format of file 'Lenna.jpg'.
Aborted (core dumped)
不确定这是什么。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)