问题描述
有没有人听说过某些可能有助于在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:
- 使用C ++ XMP SDK编写MEX文件
- 使用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 和任何 Matlab JSON解析器.可以从任何文件格式中提取它,包括.DNG
,.XMP
,.JPEG
,.TIFF
.
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工具箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!