A method for encoding at least one matrix of image views obtained from data acquired by a plenoptic camera, wherein image views of said matrix of image views are partitioned into blocks, the method comprising, for a given image view of said at least one matrix of views: obtaining at least one block to be encoded and a matching block, wherein a difference between said at least one block to be encoded and said matching block fulfills a block matching criterion, and wherein the at least one block to be encoded is extracted from an image view ( u 1 , v 1 ) at coordinates ( α 1 , β 1 ) and the matching block is extracted from an image view ( u 2 , v 2 ) at coordinates ( α 2 , β 2 ), the pixels of the at least one block to be encoded and the matching block are first normalized by the ratios of flux R u 1 ,v 1 ( α 1 , β 1 ) and R u 2 ,v 2 ( α 2 , β 2 ) respectively; determining a residual block regarding said at least one block to be encoded and said matching block, said determining comprising using modified pixels of said least one block to be encoded and modified pixels of said matching block according to flux variation parameters associated with a pixel sensor of said plenoptic camera, wherein flux variations are induced by the sampling of micro-images by said pixel sensor; encoding said residual block; providing flux variation parameters b = δ Φ d / D and e' = dID as metadata for said image view, wherein δ is a physical size of a pixel in said pixel sensor in said plenoptic camera, Φ is a diameter of a main lens in said plenoptic camera, d is a distance between a micro-lens array in said plenoptic camera and said pixel sensor, and D is a distance between said main lens and said micro-lens array; and wherein the ratios of flux R u 1 ,v 1 ( α 1 , β 1 ) and R u 2 ,v 2 ( α 2 , β 2 ) are computed using the flux variation parameters b and e'. obtaining at least one block to be encoded and a matching block, wherein a difference between said at least one block to be encoded and said matching block fulfills a block matching criterion, and wherein the at least one block to be encoded is extracted from an image view ( u 1 , v 1 ) at coordinates ( α 1 , β 1 ) and the matching block is extracted from an image view ( u 2 , v 2 ) at coordinates ( α 2 , β 2 ), the pixels of the at least one block to be encoded and the matching block are first normalized by the ratios of flux R u 1 ,v 1 ( α 1 , β 1 ) and R u 2 ,v 2 ( α 2 , β 2 ) respectively; determining a residual block regarding said at least one block to be encoded and said matching block, said determining comprising using modified pixels of said least one block to be encoded and modified pixels of said matching block according to flux variation parameters associated with a pixel sensor of said plenoptic camera, wherein flux variations are induced by the sampling of micro-images by said pixel sensor; encoding said residual block; providing flux variation parameters b = δ Φ d / D and e' = dID as metadata for said image view, wherein δ is a physical size of a pixel in said pixel sensor in said plenoptic camera, Φ is a diameter of a main lens in said plenoptic camera, d is a distance between a micro-lens array in said plenoptic camera and said pixel sensor, and D is a distance between said main lens and said micro-lens array; and wherein the ratios of flux R u 1 ,v 1 ( α 1 , β 1 ) and R u 2 ,v 2 ( α 2 , β 2 ) are computed using the flux variation parameters b and e'. <EOS>