MDA for µManager 2.0 Z steps issue with using doubles/floats

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

MDA for µManager 2.0 Z steps issue with using doubles/floats

Karl Bellve-3

I am guessing that the code behind the Z start/end/step for MDA is using/incrementing doubles which can cause issues due precision issues (0.3 in doubles isn't actually exactly 0.3 but very close to it).

If you set Z-stacks with the following:

Start Z: 0.1 µm
End Z: 0.3 µm
Step Size: 0.1 µm

You get 2 images. missing the last image.

If you set Z-stacks with the following:

Start Z: 0.2 µm
End Z: 0.4 µm
Step Size: 0.1 µm

You get 3 images, as you should.

Maybe convert the string input to doubles, multiple by a (factor 1000? nanometer accuracy), convert to integers to round them to 1nm, and when needed, convert back.



Cheers 

Karl Bellvé
Biomedical Imaging Group
Molecular Medicine 
University of Massachusetts Medical School




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
micro-manager-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/micro-manager-general