A method of determining a disparity information associated with at least a part of a first view of a scene, a matrix of views comprising said first view and a plurality of second views of the scene different from the first view being obtained by demultiplexing a raw image of the scene acquired with a plenoptic camera, wherein each first and second views represent a view of the scene according to a different point of view, a plurality of color components being associated with pixels of the raw image in such a way that each single color component of the plurality of color components is associated with a different pixel of the raw image according to a predetermined pattern, said first and second views each comprising pixels selected among the pixels of the raw image with the associated single color component, the method comprises: - selecting at least one second block of at least one pixel in at least one second view belonging to the row comprising the first view in the matrix, the at least one second block being selected if a second color pattern associated with said at least one second block corresponds at least partially to a first color pattern associated with a first block of at least one pixel of the first view, - selecting at least one second block of at least one pixel in at least one second view belonging to the column comprising the first view in the matrix, the at least one second block being selected if a second color pattern associated with said at least one second block corresponds at least partially to said first color pattern, - determining the disparity information associated with said first block according to a first disparity value and a second disparity value only when a difference between the first disparity value and the second disparity value is close to zero, the first disparity value being determined by using the first block and at least one selected second block belonging to the row comprising the first view and the second disparity value being determined by using the first block and at least one selected second block belonging to the column comprising the first view. - selecting at least one second block of at least one pixel in at least one second view belonging to the row comprising the first view in the matrix, the at least one second block being selected if a second color pattern associated with said at least one second block corresponds at least partially to a first color pattern associated with a first block of at least one pixel of the first view, - selecting at least one second block of at least one pixel in at least one second view belonging to the column comprising the first view in the matrix, the at least one second block being selected if a second color pattern associated with said at least one second block corresponds at least partially to said first color pattern, - determining the disparity information associated with said first block according to a first disparity value and a second disparity value only when a difference between the first disparity value and the second disparity value is close to zero, the first disparity value being determined by using the first block and at least one selected second block belonging to the row comprising the first view and the second disparity value being determined by using the first block and at least one selected second block belonging to the column comprising the first view.