python-microscope / microscope

Python library for control of microscope devices, supporting hardware triggers and distribution of devices over the network for performance and flexibility.
https://www.python-microscope.org
GNU General Public License v3.0
71 stars 41 forks source link

Aurox clarity code and primeBSI camera. #139

Open iandobbie opened 4 years ago

iandobbie commented 4 years ago

The prime BSI is supposed to return 16 bit data. The clarity process code appears to truncate this to 12 bit which then very easily saturates in the raw data.

carandraug commented 4 years ago

I don't see any code on our side doing any truncation, so I'm guessing this is an issue on clarity_processor itself.

Does this happens even on raw mode? Or does it only happen on difference mode?

mickp commented 4 years ago

clarity_processor converts incoming data to cv2.UMats which should preserve the full depth. For raw data, there is no conversion. Has the camera been set up to return 16-bit data in its settings? I think the power-on default may not be the full bit depth, as the maximum acquisition rate decreases with bit depth.

iandobbie commented 4 years ago

I guess we need to test this further. I may have been running the camera in a mad mode, my recent experience with the Andor Zyla is it is easy to missconfigure this without realising it as there are so many settings.