-
Notifications
You must be signed in to change notification settings - Fork 12
Description
When we finally have the image displayed in the view, there are a couple of nice features that we could implement (hopefully).
The first would be for us to be able to double-click a region in the image, and have it determine what distance the stages would need to move laterally, and to then move the stages and position that region in the center of the field of view.
The second would be for us to position the mouse over the window, and then have it adjust the focus of the microscope when we roll the wheel on the mouse.
A potential third is for us to triple-click or right-click on the image, and then perform an autofocus routine. Sampath has coded some metrics that calculate the image sharpness (analysis/contrast.py -> normalized_dct_shannon_entropy()) The goal would be to adjust the focus by some user-specified distance, collect an image, calculate the dct_shannon_entropy, and repeat. You then find the maximum dct_shannon_entropy, and move the stage to that position.