[ome-devel] OME-Tiff writing using LOCI calls from MATLAB, and ModuloAlongT annotation

Yellen, Gary gary_yellen at hms.harvard.edu
Mon Oct 27 12:43:33 GMT 2014


I was able to solve both the OME-TIFF export speed problem and the ModuloAlongT problem by using a hybrid approach:  using the LOCI tools to create the OME-XML metadata, but then using the MATLAB Tiff() class for the actual OME-TIFF writing.  I tried this because of information on the forums that the MicroManager saving of OME-TIFFs was faster than the Bio-formats code.

I've enclosed the MATLAB code that I used for this hybrid approach, in case anyone is interested.  The first section is a little parochial (using our local data objects), but most of the code should be re-usable.   This code wrote a medium-sized set of data in 1.3 seconds, compared with 89 seconds for using only calls to LOCI for the writing; although both cases had BigTiff and LZW compression set, the file using the hybrid approach was also about ~3x smaller for some reason (1.7 GB vs 5.3 GB; the 1.7 GB is essentially the same size as the MATLAB .mat file version of the same data).  Both versions of the file are readable using the Bio-Formats importer in Fiji.

I have used simpler metadata notations for the TiffData entries; they just include the starting IFD number and the number of planes.

This also solved the problem with the ModuloAlongT SA metadata (which apparently became corrupted during or after the writer.saveBytes calls).

gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20141027/8f394488/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dF_saveAsOMETiff.m
Type: application/octet-stream
Size: 9782 bytes
Desc: dF_saveAsOMETiff.m
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20141027/8f394488/attachment.obj>


More information about the ome-devel mailing list