While on the topic of scanners and camera, does anyone remember Lytro and whatever happened to them? I'm still trying to wrap my head around how it worked exactly, and how some algorithm was able to take a 2D image and "reconstitute" sharpness but only of specific areas based on "focus". Whatever image was captured must have been a blurred mess viewed "raw", but under the surface the information was all there and somehow software was able to figure out based on the pixels maybe doing some integration of adjacent pixels (closer or further pixel distance depending on focal depth desired) bring the image into sharpness.
My *naive* understanding initially was that the camera just recorded a short "video" burst (at some enormously high speed) while simultaneously running the focus from 0 to infinity at the same time. So the first frame would be close focus, then last frame would be infinite focus. Then when you view your image you would really just be picking the frame corresponding to the focal depth you were interested in. This is kind of like the "Live" video options in the iPhone except with focus varied, and would not be good for fast moving objects.... However such a system may be a simple "cheap" option that produces similar effects (provided shooting burst is fast enough and focal system can be made to change at that fast rate).