To capture an all-in-focus and 3D depth image, shape from focus method is widely used. The phase accuracy of the image candidates should be processed and adjusted beforehand. Phase only correction method was employed in this work and to accelerate the processing speed, the image processing by Fast Fourier Transform (FFT) was optimized. Meanwhile, the processing task was assigned in several parallel threads so that the performance would be improved. The method was used on a variable focus imaging system, and, as a result, the processing speed was improved to around 2.5-fps.
|