Saturday, January 5, 2008

On the Influence of Wavelength used to Depth of Focus

I have been wondering about the fact what happens to the depth of focus (DOF) in multispectral imaging, i.e. what happens if you leave all the same except the wavelength of the light used. The known formulae indicate that if used UV instead of visible light the DOF should get smaller, but there have been experts claiming the opposite. So lets see if real tests confirm the theory or not!.

In all cases the UV Rodagon 60mm served as taking lens, focus was not adjusted between shots.
A Baader UV/IR cut filter was used for the visible light shots, a baader U-filter for the UV shots and a B+W 092 IR filter for the IR shots. Light sources were a tungsten lamp and my Nichia UV LED lamp (365nm).

A precise Carl Zeiss glass ruler served as a target. Distance of focused point to CCD/Chip was 320mm, height of the camera above the target plane was 245mm i.e. the shot was done at an angle of ca 50 degrees.

I tried to keep the exposure constant for the VIS, UV and IR shots while I varied the aperture in the sequence 5.6/8/11/16. Aperture setting was used as a parameter between the shot series.

[as usual, a click on an image opens up a larger view]

1) Visual shot series @f5.6/8/11/16 using Baader UV/IR cut filter [directly from the camera, no modifications except cropped]:





2) UV shot series @f5.6/8/11/16 using Baader U-Filter [directly from the camera, no modifications except cropped]:





3) IR shot series @f5.6/8/11/16 using B+W 092 filter [directly from the camera, no modifications except cropped]:





4) VIS, UV and IR @f5.6 compared:





5) VIS, UV and IR @f8 compared:





6) VIS, UV and IR @f11 compared:





7) VIS, UV and IR @f16 compared:





8) IR focus correction @f5.6 by moving back 1mm camera/lens:





So what did we learn here:
a) using UV light instead of visible light indeed leads to a narrower DOF as compared to VIS
b) using IR light instead of visible light indeed leads to a larger DOF as compared to VIS
c) the lens used shows a neglectable focus shift (i.e. no) for UV
d) there is some IR focus shift of about 1mm or 0.3% of the distance which can be easily compensated by moving the camera/lens back by 1mm (the lens, however, was never designed for being used at IR)
e) the lens shows some contrast degradation when used for IR (the lens, however, was never designed for being used at IR)

Stay tuned, more will follow on that fascinating subject...

More info on this very interesting field may be found on my site http://www.pbase.com/kds315/uv_photos

Extracting useful Information out of Multispectral Images: an attempt

I thought about how multispectral imaging could lead to the enhanced extraction of useful information aside from the fact that unusual, strange or even weird colored images might be produced.

Let's for the moment concentrate on the extraction of information here and the way to present that in a way to make it clearly visible, even to the unskilled reader.

Since it is still cold and dark here, I used a Phalaenopsis orchid flower as the target.

In all cases the UV Rodagon 60mm served as taking lens, focus was not adjusted between shots.

[the following example is intended as a quick demonstration and far from perfect in terms of alignment due to movement, noise etc. Further, I'm not a biologist, so my wording is not correct to denote certain plant parts; please bare with me.]

[as usual a click on an image yields a large version]

1) Visual shot using Baader UV/IR cut filter @ISO200 f16:




2) UV shot using Baader U-Filter @ISO400 f5.6 showing strong UV pattern around the pollen area (round tip in the middle), the zebra pattern mound and the front tentacles i.e. strong UV reflection [directly from the camera, no modifications]:




3) IR shot using B+W 092 filter @ISO400 f5.6 showing even distribution of IR reflection with just a fine zebra pattern i.e. IR reflection [directly from the camera, no modifications]:




4) Combination of 1+2 in such a way as to make the strong UV reflection pattern clearly visible in this case shown as blue / turqouise using my differential mapping technique i.e. UV is mapped into the visible space as blue:




5) Combination of 3+4 in such as way as to also include the soft IR reflection patterns and still trying to preserve the info of no. 4 using the same mapping technique but here IR is mapped in as red:




6) This is for comparison the mapping UV-->B, VIS-->G, IR-->R which in my opinion needs a very skilled reader to see these patterns due to additive mixing of false colors (or one could even say it suppresses it to the unskilled reader):




So what do we have here now in the final result:
we clearly see that the flower exhibits a strong UV pattern around the pollen area (which may serve to attract pollinators), the zebra pattern around the "mound" and thse tentacle like parts which otherwise would have not been visible in the white light shot.

The IR contribution to the overall result in this case is quite even and except some soft zebra pattern does not contribute much, so no. 4 could have even served as a final result - in that case.

This case was meant to express my opinion, that if a meaningful result for multispectral imaging in terms of extraction of information is wanted, the method of generating the final result should be chosen accordingly and the way of combining the different spectral images should be governed by that - just my 2 cents.


Stay tuned, more will follow on that fascinating subject...

More info on this very interesting field may be found on my site http://www.pbase.com/kds315/uv_photos