
Most AF subsystems consists of 2 modules -- analysis module and control module. The analysis module determines if an image is well focused by using different focus measure algorithms. Thus it is important to come up with a good algorithm that can measure the sharpness of the image as accurately as possible.