A method of processing an image comprises acquiring an image of a scene including an object having a recognizable feature, determining a lens actuator setting providing a maximum sharpness for a region of the image including the object, and employing the determined dimension of the feature instead of an assumed dimension ofThe feature for subsequent processing of images of the scene including theobject.
A method of processing an image comprises: acquiring an image of a scene including an object having a recognizable feature; determining a lens actuator setting providing a maximum sharpness for a region of the image including the object and a lens displacement corresponding to the lens actuator setting; calculating a distance to the object based on the lens displacement; determining a dimension of the feature as a function of the distance to the object, the imaged object size and a focal length of a lens assembly with which the image was acquired; and employing the determined dimension of the feature instead of an assumed dimension of the feature for subsequent processing of images of the scene including the object.