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
37 stars 26 forks source link

Pixel size on a per camera basis. #629

Open iandobbie opened 4 years ago

iandobbie commented 4 years ago

Increased image meta data would be useful as listed in #538. The simulated mosaic that I have implemented in microscope would be significantly enhanced if the camera had a record of the pixel size. This would also allow better snap image storage and the return of the camera window scale bar.

1) I suggest that we add a pixel_size parameter to the camera API in microscope and that objective changes pass this to the camera.

2) We would then add a pixel_size value to any returned image from microscope.

This means that binning etc could be dealt with on microscope. Images from camera with different projected pixel sizes could be combined in a single experiment. How to store this data in files is a different issue.

iandobbie commented 4 years ago

I think David's suggestion this morning was to just have the objective change call set the pixel size parameter on the camera and not have any interaction with microscope. This seems like a sensible compromise and will allow the current logic and information flow to work but still allow things like the simulated mosaic to work properly.