microscope-cockpit / cockpit

Cockpit is a microscope graphical user interface. It is a flexible and easy to extend platform aimed at life scientists using bespoke microscopes.
https://microscope-cockpit.org
GNU General Public License v3.0
35 stars 26 forks source link

Automated storage of mosaic images #429

Closed iandobbie closed 12 months ago

iandobbie commented 5 years ago

On CryoSIM it would be great to be able to automatically store the mosaic images along with XY coords so we can reconstruct the mosaic to match with the xray images

mickp commented 5 years ago

I don't understand what you mean. If you save a mosaic, the images are saved in a single MRC file, and the XY (and Z) locations for each image are stored in a metadata file. What more is needed?

iandobbie commented 5 years ago

Maria asked for the ability to have the files autosaved as they were collected, so the images saved as individual mrc files, probably with the xyz fields populated in the mrc header and then stored in a separate mosaic sub directory.

Just so that the mosaic data is not just junked if you forget to save it explicitly.

mickp commented 5 years ago

OK. How should we handle the following?

iandobbie commented 12 months ago

I think this is not easily achievable. My recent work on extending the metadata in snap and mosaic saves has shown that the current dv save format cannot accommodate an unknown number of images. It would involve either a) leaving a large gap at the start of the file to accept the data retrospectively, or to write the file then build the correct header and rewrite the file after the mosaic has finished, and this doesn't account for continuing mosaics.

I am going to close this as not realistically achievable. We can revisit this if we move onto a new file format, eg the work I have started on OME-zarr.