-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get bidirectional scanning correction working again #160
Comments
Currently to test this we do:
|
With resonant scanning we see a slow drift in the required correction factor over time. e.g. over the course of 5 hours we can see a drift when imaging at 0.5 microns per pixel. To correct this it seems we need to take the ScanImage pixel data back to samples, perform the correction there, then return to pixels. The pixel data aren't quite isotropic and this messes things up. |
Although should skip tiles with no signal (see #181) we can for now just take the median shift in each section and work with that. |
As a stop-gap we can now do |
Problem: whole pixel DFT does not identify -1 as the correct value. Try sub-pixel and see if it's a rounding problem. That does not help. I think I trust the shift value from |
The code works about 2x faster on |
I note that the calibLinePhase algorithm is better at picking up the phase delay mismatch with brighter channels. See FM_mar167 section 51 red (bright) vs green (sparser and perhaps dimmer). It follows, however, what the eye sees. So correcting channel 51 in red is obviously better. In green it's better but you have to look carefully and do not notice it being bad before correction. However, towards the end of the acquisition it is obvious in the dimmer green channel that the phase is wrong. Nonetheless, Things to try:
|
The first thing to decide is whether we need sub-pixel correction and if so whether this introduces artefacts that are unacceptable.
The next thing to consider is how we do the correction. Likely the best option is one correction for the whole frame. For galvo scanning we might want to take the middle 2/3 of the image only.
The text was updated successfully, but these errors were encountered: