Depth from Focus
(Added free software ''depthofdefocus-0.1''.) |
m |
||
Line 34: | Line 34: | ||
{|align="center" | {|align="center" | ||
|- | |- | ||
− | |[[Image:Grid245.jpg|thumb|200px|Red-cyan anaglyph image of first object [http://vision.eng.shu.ac.uk/jan/grid.avi (2.0MB video)]]]||[[Image:Sugar.jpg|thumb|200px|Extended depth of field image for a piece of sugar (compare with 532 kByte [http://vision.eng.shu.ac.uk/jan/sugarstack.avi video of focus stack])]]||[[Image:Fiberdf10xdv.png|thumb|200px|Extended depth of field image of glass fibers (compare with 1.09 MByte [http://vision.eng.shu.ac.uk/jan/fiberdf10x.avi video of focus stack])]]|| | + | |[[Image:Grid245.jpg|thumb|200px|Red-cyan anaglyph image of first object [http://vision.eng.shu.ac.uk/jan/grid.avi (2.0MB video)]]]||[[Image:Sugar.jpg|thumb|200px|Extended depth of field image for a piece of sugar (compare with 532 kByte [http://vision.eng.shu.ac.uk/jan/sugarstack.avi video of focus stack])]]||[[Image:Fiberdf10xdv.png|thumb|200px|Extended depth of field image of glass fibers (compare with 1.09 MByte [http://vision.eng.shu.ac.uk/jan/fiberdf10x.avi video of focus stack])]]||[[Image:SmallWheel.png|thumb|200px|Reconstruction of ''0.6 mm'' cogwheel using multiple focus sets]] |
|- | |- | ||
|} | |} |
Revision as of 17:42, 3 April 2006
Contents |
Depth from Focus
3D surface metrology
- In principle it should work with any microscope, which has a motorized z-drive and a CCD camera (see Mimas video input).
- The results will be even better, if the illumination optics of the microscope can project a pattern.
- Non-destructive measurement of surface profiles
- With our experimental settings we observed
- Vertical resolution <math>30\ \mu m</math> and better (depending on aperture-size, magnification, projection-pattern and the surface properties of the object).
- Lateral resolution <math>25\ \mu m</math> and better (depends).
- Captured area about <math>0.5\ mm^2</math> (can be improved by using a motorized X-Y-table and stitching software).
- Open Source (you are free to improve the code yourself and redistribute it).
Demonstration
Here are some typical microscope images (showing a surface, which has been shaped using a power beam).
Using a focus-stack one can compute images with extended depth of focus:
If the surface can be illuminated properly, one can even do a 3D-reconstruction of the surface:
[[Image:suevit20.png | 200px|3D reconstruction of suevit (1.4MB video)]] |
As the idea for the algorithm was fixed already, it was possible to implement the algorithm as a command-line tool in less than 4 days, using existing Mimas-software (exspecially the operators for boost::multi_array).
As this is a "quick hack", there's still lots of space for improvements.
Download
The software for estimating height-maps and images with extended depth-of-field is available for free (under the LGPL)! You first need to install version 2.0 of the Mimas Real-Time Computer Vision Library to be able to compile and run depthoffocus-0.1 (652 kByte). The software also comes with sample files to generate photo-realistic 3D-reconstruction using POVRay!
Links
- Anaglyph images
- german diploma thesis about depth of focus (also available as PDF)
- Mechrob-paper Focus set based reconstruction of micro-objects