We're Hiring!

matlab bfopen script and meta data

Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats
Please note:
Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats

If you are having trouble with image files, there is information about reporting bugs in the Bio-Formats documentation. Please send us the data and let us know what version of Bio-Formats you are using. For issues with your code, please provide a link to a public repository, ideally GitHub.

matlab bfopen script and meta data

Postby ebbwdan » Tue Dec 10, 2013 12:56 am

Hi

I have downloaded the latest Bioformats Matlab toolbox and have followed the tutorial here:

http://www.openmicroscopy.org/site/supp ... b-dev.html

bfopen uses getSeriesMetadata to retrieve a hashtable for the metadata. Unfortunately this method produces an empty hashtable. I had to modify this to use the getMetadata method instead.

Cheers,

Dan.
ebbwdan
 
Posts: 61
Joined: Wed Aug 29, 2012 4:46 am

Re: matlab bfopen script and meta data

Postby sbesson » Wed Dec 11, 2013 11:35 am

Hi Dan,

thanks for the bug report. You are right, the current implementation of bfopen.m does not include the global metadata but only the series-specific metadata. This change was originally implemented to prevent all metadata to be read for all series in large multi-series files (see the corresponding thread at http://lists.openmicroscopy.org.uk/pipe ... 03825.html).

Depending on the format you are reading, the metadata may either be stored in the global or the series metadata. Using getMetadata as you suggest will indeed give you access to all the metadata.

Note however that this method returns the global metadata and the metadata for all the series in the file. We are currently working on a bug fix to correctly store the original metadata both global and series-specific in the output of bfopen.m (see https://github.com/openmicroscopy/bioformats/pull/825).

Cheers,
Sebastien
User avatar
sbesson
Team Member
 
Posts: 421
Joined: Tue Feb 28, 2012 7:20 pm


Return to User Discussion [Legacy]

Who is online

Users browsing this forum: No registered users and 1 guest