matlab - 在 Matlab 中读取 DNG 文件
问题描述
我正在尝试从 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));
解决方案
来自 iphone 的 DNG 文件似乎被压缩(无损 jpeg 压缩)。尝试通过 DNG Converter 运行文件,并将首选项设置为未压缩。然后在 Matlab 中尝试。
推荐阅读
- angular - Angular - 在按钮点击时切换两个类
- c# - 如何通过 OPC 基础 UA-.net 标准库正确使用 OPC UA 中的 TypeDefinition 和 Object 实例
- javascript - 如何使用 setimage discord.js 使图像更大
- c# - 在 GLSL 中复制 GL 中间模式光照模型
- zsh - 杀死特定屏幕
- python - 将行值与列名进行比较并突出显示 Pandas 中的相交单元格
- javascript - 从 ffmpeg 到 html 的实时视频源,延迟最小
- erlang - 如何测试 msg 是否发送到 GenServer 进程
- reactjs - 更新到 Windows 2004 后,我的 LocalHost:3000 无法正常工作
- reactjs - 找不到 webpack 的 React 组件中使用的动态图像 src