image-tiff icon indicating copy to clipboard operation
image-tiff copied to clipboard

OME-TIFF specification

Open tomouellette opened this issue 1 year ago • 1 comments

I would like to be able to encode and decode tiff images that follow the OME-TIFF/OME-XML specifications.

My specific use case for this functionality is in microscopy imaging or bio-imaging experiments. OME-TIFF, and related formats, seem to have converged as the standard open source specification for microscopy and bio-imaging. A functional OME-TIFF encoder/decoder in rust would open a lot of doors for writing a lot more pure rust code for these applications.

The documentation laying out the data model/format is pretty good and found here: https://ome-model.readthedocs.io/en/stable/index.html.

I would be interested in contributing something here but I'm definitely unfamiliar with this API as I mostly interface with it through the high-level API in the image crate.

Edit: I have played around with just pushing everything to vector of pixels and reshaping using existing methods, but definitely not consistent with the api

tomouellette avatar Mar 13 '24 02:03 tomouellette

I think the main thing at the level of this crate would be making sure that the relevant metadata items can be queried/set. The actual parsing and interpretation of the OME metadata would then be a separate library. Does that make sense?

fintelia avatar Apr 07 '24 00:04 fintelia