1. A method comprising: generating a plurality of different overall sharpness parameters each corresponding to a different focus position by performing a Discrete Wavelet Transform upon a plurality of different images each corresponding to a different focus position captured by an imaging device; and automatically focusing said imaging device to an optimal focus position by comparing said plurality of different overall sharpness parameters.