Researchers at the University of Toronto have come up with a new video camera that can achieve infinite depth of field even when objects are immediately in front of the camera. What they did was stuff an array of video cameras into a single camera, with each camera focused at a different distance. Software then calculates the distance of each object in the scene, and selects the individual pixel that has the object in focus. The resulting image is one in which every object, both near and far, is in focus.
Maybe in the future consumer cameras will also have an array of cameras, allowing us to have much more control over the photo (or video) in post-processing.
Image credit: Photo and illustration by the University of Toronto