Bio-Formats
OME at LOCI – Software – Bio-Formats — MATLAB

MATLAB is a high-level language and interactive environment that facilitates rapid development of algorithms for performing computationally intensive tasks.

Calling Bio-Formats from MATLAB is fairly straightforward, since MATLAB has built-in interoperability with Java. In our brief investigation so far, we came up with a simple script for reading image files:

We are not MATLAB experts—any comments on improving the script are welcome.


Performance

In our tests (MATLAB R14 vs. java 1.6.0_03), the script executes at approximately half the speed of our showinf command line tool, due to overhead from reshaping arrays and converting pixel types.


Installation

To use the script, download bfopen.m (above) and loci_tools.jar and place them in your MATLAB work directory.

If you wish to read certain kinds of compressed DICOM files, you will need to set up the optional native libraries.

If you wish to read compressed SVS files, you will need to set up the optional native library.


Upgrading

To use a newer version of Bio-Formats, overwrite loci_tools.jar with the newer version and restart MATLAB.



Last update: Thursday, October 30, 2008