我正在尝试从iphoneX读取dng文件。我读到了链接https://blogs.mathworks.com/steve/2011/03/08/tips-for-reading-a-camera-raw-file-into-matlab/,但错误信息是‘引用不存在的字段’SubIFDs‘’。
info=imfinfo(dng_file_path);
info.SubIFDs{1} %where the error pop up
tiffHandle=Tiff((dng_file_path),'r');
offsets=TiffHandle.getTag('SubIFD');
setSubDirectory(TiffHandle,offsets(1));
CFA=double(read(TiffHandle));发布于 2019-07-10 08:05:02
来自iphone的DNG文件似乎是压缩的(无损jpeg压缩)。尝试在首选项设置为未压缩的情况下通过DNG Converter运行该文件。然后在Matlab中尝试一下。
https://stackoverflow.com/questions/53857636
复制相似问题