Matlab的XMP工具箱 [英] XMP toolbox for Matlab

查看:265
本文介绍了Matlab的XMP工具箱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人听说过某些可能有助于在Matlab中使用 XMP 元数据的工作?

Has anyone ever heard of something that might facilitate the work with XMP metadata in Matlab?

例如,只需使用exifread命令-

output = exifread(filename);

我发现了线程,但是它似乎已经死了.

I've found this thread, but it seems to be dead.

目前,我正在考虑以下选项:

Currently I am thinking about the following options:

  1. 使用C ++ XMP SDK编写MEX文件
  2. 使用JAVA XMP SDK调用Java例程

总而言之,问题是: 您对如何在Matlab中读取/编写XMP有任何想法吗?

To summarize, the question is: Do you have any idea on how XMP can be read/written in Matlab?

推荐答案

我找到了答案.最好的方法是下载 ExifTool 和任何

I have found the answer. The best way is to download ExifTool and any Matlab JSON parser. It is possible to extract it from any file format, including .DNG, .XMP, .JPEG, .TIFF.

第1步:使用提取信息到临时JSON文件中

Step 1: Extract the info into temporary JSON file by using

system(['exiftool -struct -j ' fileName '>'  tempFile]);

步骤2:在tempFile上调用JSON解析器
步骤3:您将数据保存在Matlab结构中.

Step 2: Call the JSON parser on the tempFile
Step 3: You have the data in Matlab struct.

这篇关于Matlab的XMP工具箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆