[英]Read DNG file in Matlab
我正在嘗試從iphoneX讀取dng文件。 我閱讀了鏈接https://blogs.mathworks.com/steve/2011/03/08/tips-for-reading-a-camera-raw-file-into-matlab/,但錯誤消息是“參考非現有字段“ SubIFD”。
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));
來自iphone的DNG文件似乎已被壓縮(無損jpeg壓縮)。 嘗試通過首選項設置為“未壓縮”的DNG Converter運行文件。 然后在Matlab中嘗試。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.