Good image quality is the most important requirement of a thermal imager or any other imaging system in almost all applications. Degree of focus in an image plays a very important role in determining the image quality, thus focusing mechanism is a very important requirement in thermal imagers. A real-time and reliable passive autofocus algorithm has been developed and implemented in FPGA-based hardware. This autofocus module has been integrated with the video processing pipeline of thermal imagers. Prior to the hardware implementation, different algorithms for image sharpness evaluation have been implemented in MATLAB and simulations have been done with test video sequences acquired by a thermal imager with motorized focus control to analyze the algorithms efficiency. Cumulative gradient algorithm has been developed for image sharpness evaluation. The algorithm has been tested on images taken from a thermal imager under varying contrast and background conditions, and it shows high precision and good discriminating power. The images have been prefiltered by a median rank-order filter using a 3 × 3 matrix to make it more robust in handling noisy images. Complete autofocus algorithm design comprising of a frame acquisition module for acquiring user selectable central region in the incoming thermal imager video, Cumulative Gradient-based image sharpness evaluation module, fixed step size search-based focal plane search module and a motor pulse generation module for generating motor drives have been implemented on Xilinx FPGA device XC4VLX100 using Xilinx ISE EDA tool.
[1]
M.V. Shirvaikar.
An optimal measure for camera focus and exposure
,
2004,
Thirty-Sixth Southeastern Symposium on System Theory, 2004. Proceedings of the.
[2]
Gabriel Thomas,et al.
All-in-Focus Imaging Using a Series of Images on Different Focal Planes
,
2005,
ICIAR.
[3]
Feng Li,et al.
A fast auto focusing method for digital still camera
,
2005,
2005 International Conference on Machine Learning and Cybernetics.
[4]
J. Baina,et al.
Automatic focus and iris control for video cameras
,
1995
.
[5]
Homer H. Chen,et al.
Robust focus measure for low-contrast images
,
2006,
2006 Digest of Technical Papers International Conference on Consumer Electronics.
[6]
Marcelo H. Ang,et al.
Practical issues in pixel-based autofocusing for machine vision
,
2001,
Proceedings 2001 ICRA. IEEE International Conference on Robotics and Automation (Cat. No.01CH37164).