A computer implemented method for encoding an image acquired by an optical acquisition system comprising: generating parameters representative of a volume , in an object space of said optical acquisition system, occupied by a set of rays of light passing through a pupil of said optical acquisition system and a conjugate of at least one pixel of a sensor of said optical acquisition system said volume occupied by said set of rays of light being called a pixel beam, wherein generating said parameters comprises: - generating first parameters defining said pupil of the optical acquisition system, - generating second parameters defining the smallest section of said pixel beam, called the waist , which corresponds to the conjugate, in the object space, of at least said pixel of the sensor, wherein said parameters defining the waist of said pixel beam are computed based on parameters defining said at least one pixel, and include a first parameter ( z p ) representing a distance between the waist and the center of the pupil, a second parameter ( a ) representing a radius of the waist, and parameters ( θ x , θ y ) defining a direction of the conjugate from the center of the pupil; - generating third parameters representing an intensity of light captured by said pixel; and generating a data file comprising the parameters; associating the data file to the image; and generating a message comprising the data file. generating parameters representative of a volume , in an object space of said optical acquisition system, occupied by a set of rays of light passing through a pupil of said optical acquisition system and a conjugate of at least one pixel of a sensor of said optical acquisition system said volume occupied by said set of rays of light being called a pixel beam, wherein generating said parameters comprises: - generating first parameters defining said pupil of the optical acquisition system, - generating second parameters defining the smallest section of said pixel beam, called the waist , which corresponds to the conjugate, in the object space, of at least said pixel of the sensor, wherein said parameters defining the waist of said pixel beam are computed based on parameters defining said at least one pixel, and include a first parameter ( z p ) representing a distance between the waist and the center of the pupil, a second parameter ( a ) representing a radius of the waist, and parameters ( θ x , θ y ) defining a direction of the conjugate from the center of the pupil; - generating third parameters representing an intensity of light captured by said pixel; and - generating first parameters defining said pupil of the optical acquisition system, - generating second parameters defining the smallest section of said pixel beam, called the waist , which corresponds to the conjugate, in the object space, of at least said pixel of the sensor, wherein said parameters defining the waist of said pixel beam are computed based on parameters defining said at least one pixel, and include a first parameter ( z p ) representing a distance between the waist and the center of the pupil, a second parameter ( a ) representing a radius of the waist, and parameters ( θ x , θ y ) defining a direction of the conjugate from the center of the pupil; - generating third parameters representing an intensity of light captured by said pixel; and generating a data file comprising the parameters; associating the data file to the image; and generating a message comprising the data file. <EOS>