1. A system for extended depth-of-field imaging, comprising: an imaging apparatus; at least one processing element integrated on the imaging apparatus; and storage means embodying program logic for iteratively computing a focus distance for each stack image within at least one stack of images based on a hyperfocal distance and the near and far limits of at least one specified range of distances until at least the specified range of distances is covered, and automatically acquiring each stack image at said focus distance, wherein execution of the program logic by the at least one processing element causes the system to compute the focus distances and acquire the at least one stack of images covering the at least one specified range of distances.