1. A method for generating an image of a scene, the method comprising: collecting light from the scene using an imaging arrangement, wherein the collected light from the scene comprises a four-dimensional light field; generating light field data from the collected light; generating weighted light field values by weighting the light field data as a function of one or more optical characteristics of the imaging arrangement, and further as a function of a light ray path of the collected light through the imaging arrangement; digitally processing the weighted light field values to generate output image data in which aberrations of the imaging arrangement are corrected for; and using the output image data to generate the image of the scene, including corrections for the aberrations.