Method for error concealment in an image, including: detecting an error area in image data of an image consisting of pixels; determining a first boundary section and a second boundary section of the error area, the boundary sections including boundary elements, the boundary elements being defined based on pixels with image information adjacent to the error area; estimating pixels of the error area; characterized in aligning the boundary elements of the first boundary section and the second boundary section in non-linear alignment operations in order to establish a plurality of correspondences between respective boundary elements of the first boundary section and the second boundary section, wherein the non-linear alignment operations comprise creating a matrix comprising columns and rows, wherein the columns and rows correspond to the first and second boundary sections, wherein the non-linear alignment operations further comprise a matrix fill operation, in which a maximum global alignment score between respective boundary elements of the first and second boundary sections is determined by using for each matrix position of the created matrix, a scoring operation for obtaining a respective maximum alignment score for each matrix position, wherein the non-linear alignment operations further comprise a trace back operation, in which the aligning between the respective boundary elements of the first and second boundary sections is determined using obtained maximum alignment scores, wherein the determined aligning results in the maximum global alignment score; wherein said estimating of pixels is based on the plurality of established correspondences between respective boundary elements of the first boundary section and the second boundary section. detecting an error area in image data of an image consisting of pixels; determining a first boundary section and a second boundary section of the error area, the boundary sections including boundary elements, the boundary elements being defined based on pixels with image information adjacent to the error area; estimating pixels of the error area; characterized in aligning the boundary elements of the first boundary section and the second boundary section in non-linear alignment operations in order to establish a plurality of correspondences between respective boundary elements of the first boundary section and the second boundary section, wherein the non-linear alignment operations comprise creating a matrix comprising columns and rows, wherein the columns and rows correspond to the first and second boundary sections, wherein the non-linear alignment operations further comprise a matrix fill operation, in which a maximum global alignment score between respective boundary elements of the first and second boundary sections is determined by using for each matrix position of the created matrix, a scoring operation for obtaining a respective maximum alignment score for each matrix position, wherein the non-linear alignment operations further comprise a trace back operation, in which the aligning between the respective boundary elements of the first and second boundary sections is determined using obtained maximum alignment scores, wherein the determined aligning results in the maximum global alignment score;