-
Notifications
You must be signed in to change notification settings - Fork 2
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
How to implement bidirectional scanning? #48
Comments
In what sense is performance not good? There is a simple bidi scanner implemented here: DAQ_ToolBox_Scanners/scanAndAcquire_Polished.m |
@raacampbell Thanks very much for your replay. I use the DAQmx_Scanners/polishedScanner.m. These can generate a bidirectional scanning signal. In the function readAndDisplayLastFrame(obj,src,evnt) part, I add new codes as obj.lastFrame = reshape(obj.lastFrame, obj.correctedPointsPerLine, obj.imSize); % The following is added newly. obj.flipIndex = 2:2:obj.imSize; The performance means the image resolution. The resolution is lower than unidirectional scanning method. What is wrong with the modifications? Thanks for your help. |
I will carefully read DAQ_ToolBox_Scanners/scanAndAcquire_Polished.m. |
Looks like you are missing the phase correction when rebuilding the image. You'll see that in the link I sent, above. |
Sorry to trouble you again. I find the phase correction part now. But how to determine the delayed phase?
|
Empirically whilst you image. The image will go from looking crappy to sharp as you change the value. |
I use DAQ_ToolBox_Scanners/scanAndAcquire_Polished.m to try the bidirectionally scanning. The result is not good as the unidirectional scanning. I modify the codes, the results are not improved. The phase correction is added. The results are still not improved. May be other improvements are needed. |
The phase correction is pretty sensitive and some scanners need to be run slower. The object-oriented version of the code allows you to change the scan phase whilst it's running, which is much easier to work with. You can run it without the GUI (see help in scanAndAcquire_OO.m). Scan slowly and play with the phase offset in small increments. Then see how much faster you can scan and still have it work well. If you scan too fast uni-directionally (beyond what the control loop can do), then scanners will produce a distorted image but it will look more reasonable than a bidirectional image that is too fast. |
I implement a bidirectional scanning, but the performance is not good. How to improve it? Thanks very much.
The text was updated successfully, but these errors were encountered: