1. An apparatus for electronically capturing images, comprising: an imaging device; a focus control element coupled to the imaging device; a computer processor coupled to the imaging device and the focus control element; memory coupled to the computer processor and configured for retaining images captured from the imaging device and for retaining programming executable by the computer processor; a multi-dimensional focus matching model retained in the memory, wherein the model is based on imaging calibration targets at different focal lengths; and programming executable by the computer processor for carrying out the steps of, (i) capturing multiple object images, (ii) automatically adjusting the focus control element in response to performing depth estimation on the object images based on inputting blur differences detected between the images into the focus matching model, and performing histogram matching for processing the object images to reduce noise from outliers between focal positions prior to inputting the blur differences into the focus matching model.