1. A method, comprising: obtaining a flat comprising a plurality of microimages of separate portions of an image of a scene, wherein each of the plurality of microimages is in a separate region of the flat, wherein the flat is a two-dimensional (2D) representation of a four-dimensional (4D) light-field that captures both spatial and angular information of the scene; rendering an output image of the scene from the plurality of separate microimages, wherein said rendering comprises, for each point of the output image: determining a target microimage in the flat for this point; calculating a position in the target microimage from which a value is to be sampled; for each microimage in a neighborhood including the target image, reading a value from the calculated position in the respective microimage and adding the value to a value accumulator; and normalizing the value in the value accumulator and assigning the normalized value to the point in the output image.