Login  Register

Re: Question about autofocus

Posted by Weller Andrew Francis on May 16, 2006; 3:45pm
URL: http://imagej.273.s1.nabble.com/Question-about-running-ImageJ-on-a-multi-CPU-workstation-tp3702722p3702728.html

Paul and Christophe,

I am currently working with the 'IJSerial v1.0b' plugin for serial port
control of a microscope (including xyz stage) from
http://mitel.dimi.uniud.it/eslide/sw.php. It is a relatively easy task to
send commands through the serial interface to control whatever you want to
control that accept serial commands!

In my example, I control many aspects of the microscope through 5 character
strings. For example, "50010", etc. If the stage you would like to use
accepts similar commands (I know this is the case for Marzhauser and Prior)
then this should not be a problem.

Something that I have been thinking about lately is implementing an autofocus
procedure. In my current macro, it starts by initialising many aspects of the
microscope (upper and lower Z thresholds so to not break any slides, etc).
Something else that can be initialised is a particular Z value that you know
corresponds to the 'near enough' in-focus plane. Once the stage has moved to
a new xy position, you can then run a plugin that tests the sharpness (focal
quality) of the image from this in-focus z-plane and either move the stage up
or down to compensate until you have the optimum plane. (I've used a highpass
filter before to test how many sharp pixels there are.)

Anyway, some rambling thoughts as much as anything. I hope it helps?!

Cheers, Andy

--
Dr. Andy Weller
ETH Zurich
Geological Institute
CAB E 64
Universitaetstrasse 6
8092 Zurich, Switzerland

[hidden email]
www.erdw.ethz.ch/Weller

+41 44 632 84 12 office
+41 44 632 36 82 lab
+41 76 426 36 99 mobile
+41 44 632 10 80 fax