[英]Magick++ can't read raw nef image
I am trying to read a raw image using magick++. 我正在尝试使用magick ++读取原始图像。 According to this list the nikon's NEF format should be supported by image magick. 根据此列表,image magick应该支持尼康的NEF格式。 http://www.imagemagick.org/script/formats.php http://www.imagemagick.org/script/formats.php
Here is my code... 这是我的代码...
int main(int argc, char** argv)
{
Magick::InitializeMagick(argv[0]);
Magick::Image im;
im.read("/home/chase/Desktop/DSC_0985.NEF");
im.display();
return 0;
}
I get the following error message... 我收到以下错误消息...
terminate called after throwing an instance of 'Magick::ErrorBlob'
what(): Stacking: unable to open image `/tmp/magick-25923_ETdn5fNSJR5.ppm': No such file or directory @ error/blob.c/OpenBlob/2709
I installed magick++ using sudo apt-get install libmagick++-dev
. 我使用sudo apt-get install libmagick++-dev
安装了magick ++。 I am using ubuntu 15.04 我正在使用Ubuntu 15.04
I just tried this as well. 我也尝试过这个。 Same error. 同样的错误。 NEF should be supported. 应支持NEF。
Magick::CoderInfo c("NEF");
if(c.isReadable())
{
Magick::Image im;
im.read("/home/chase/Desktop/DSC_0985.NEF");
im.display();
}
I don't use Ubuntu, but on OS X at least, ImageMagick uses ufraw
and ufraw-batch
for NEF
, DNG
and CR[2W]
raw files, so I would suggest you try installing those, presumably with something like: 我不使用Ubuntu,但至少在OS X上,ImageMagick对NEF
, DNG
和CR[2W]
原始文件使用ufraw
和ufraw-batch
,因此建议您尝试安装这些文件,大概是这样的:
apt-get install ufraw
apt-get install ufraw-batch
ImageMagick
not read directly RAW they use dcraw
for convert to .ppm
and them open it. ImageMagick
不直接读取RAW, .ppm
使用dcraw
转换为.ppm
,然后将其打开。
Try install dcraw
. 尝试安装dcraw
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.