openmicroscopy/bioformats — pull request #93 by sbesson (2012-07-09 13:59:09+00:00)
Title: First version of bfsave.m utility function (# 4112)

This PR implements a first version of bfsave.m function. Current version of the function:
- takes a 5D matrix as an input
- allows to specify dimensionOrder as an optional input argument
- handles all various data types listed in DataTools (int8, uint8, int16, uint16, int32, uint32, float/single, double)

MATLAB xUnit tests have been implemented both for dimension order and data types and can be run with:

runtests components/bio-formats/test/matlab/TestBfsave

These tests are using the existing bfGetReader/bfGetPlane functions. This could be improved by directly calling the Java methods.

Future versions of this function should allow the user to pass additional metadata as parameter/value pairs. Then the IMetadata object could be filled using the corresponding set methods.