METHOD AND APPARATUS FOR ALIGNMENT OF AN OPTICAL ASSEMBLY WITH AN IMAGE SENSOR
A method is described for positioning an image sensor at a point of best focus for a lens. The lens has an optical axis and the image sensor is moved to a plurality of positions along the optical axis. The image sensor captures an image of a target image at each of the plurality of positions through the lens. A measure of blur in the image captured is derived at each of the plurality of positions from pixel data output from the image sensor. A relationship is derived between blur and position of the image sensor along the optical axis. The image sensor is then moved to a position on the optical axis that the relationship indicates as the point of best focus where the image sensor is fixedly secured relative to the lens.