Patent ID: 8817015

Claim:
A method, comprising: obtaining a flat comprising a plurality of microimages of separate portions of an image of a scene, each of the plurality of microimages is being in a separate region of the flat, the flat being a two-dimensional (2D) representation of a four-dimensional (4D) light-field that captures both spatial and angular information of the scene, at least one microimage being produced from a microlens focused on an image plane of a lens other than a microlens; for each of the plurality of microimages, estimating a depth of a respective portion of the image of the scene; and rendering an output image of the scene from the plurality of separate microimages, said rendering comprising, for each point of the output image: determining a source microimage in the flat from which this point in the output image is to be rendered; calculating a position in the flat according to this point in the output image, the determined source image, and the estimated depth corresponding to the determined source microimage; reading a value from the calculated position in the flat and weighting the value with a weight; updating an accumulated value by adding the weighted value to the accumulated value, and updating an accumulated weight value by adding the weight to the accumulated weight value; normalizing the updated accumulated value by the updated accumulated weight value; and assigning the normalized value to the point in the output image.