Patent ID: 7020346
Filing Date: 2006-03-28
Classification: G06T,H04N

Abstract:
1. A method for automatically restoring in real time at least one digitized original image that has been altered by one or more straight or virtually straight scratches, by providing detection masks or coordinates of areas of the image to be restored which correspond to the scratches, the method comprising the steps of: a) calculating and recording for each line of pixels in an area to be restored perpendicular to a theoretical axis of a scratch, an absolute value of a difference in intensity between two pixels located on said line of pixels, immediately to the left and right of the area to be restored, outside said area; b) calculating and recording for each line of pixels in the area to be restored, a width and a height of a working area which represents an area of pixels centered around said line of pixels, said width being approximately that of the area to be restored and said height depending on the values calculated in said step a); c) calculating and recording for each column of pixels in the working area defined in said step b) parallel to a theoretical axis of the scratch, an average value of respective intensity of the pixels forming said column of pixels in the altered image; d) calculating and recording, by linear interpolation perpendicular to the theoretical axis of the scratch between the pixels located immediately to the left and right of the area to be restored defined in said step a), a local value of an intensity of an estimated profile and characteristic of the scratch, for each pixel in the line of pixels in the working area; and e) calculating and recording a local corrected intensity value for each pixel in the line of pixels in the working area, by subtracting the local value obtained in said step d) from the value of the intensity of said pixel in the altered image, so as to automatically restore the original image.