Extracting MetaData with ImageJ Macro Extensions
Posted: Fri May 15, 2015 1:25 pm
I've been trying to access the metadata of a multidimensional LSM file in an Fiji macro. My basic code looks something like this (trimmed for brevity):
But Val always returns zero. I'm making the assumption that the key/value pairs as seen in the "Show Info" dialog are even the right ones to be addressing (cf. the OME XML metadata).
Any pointers appreciated, sorry if this belongs on the ImageJ list.
Thanks!
Dave Mason
- Code: Select all
run("Bio-Formats Macro Extensions");
filePath = File.openDialog("Choose a file");
Ext.setId(filePath);
Ext.getMetadataValue("Channel Name #05",val);
print(val);
But Val always returns zero. I'm making the assumption that the key/value pairs as seen in the "Show Info" dialog are even the right ones to be addressing (cf. the OME XML metadata).
Any pointers appreciated, sorry if this belongs on the ImageJ list.
Thanks!
Dave Mason