Patent ID: 6940549

Claim:
A method of correcting defects in image data comprising an array of pixels, the method comprising: sampling ( 5 ) the intensity of pixels of the image data in each side of a defect; calculating ( 6 ) differences between the sampled intensities to generate one or more first intensity difference signals (D 1 , D 2 ) indicative of intensity differences across the defect; calculating ( 6 ) difference between the sampled intensities to generate at least two second intensity difference signals (D 3 , D 4 ) indicative of an intensity difference on each respective side of the detect, and correcting ( 7 - 11 ) the defect in dependence on the first and second intensity difference signals (D 1 -D 4 ), a defect being replaced by an average of surrounding pixels if said first and second intensity difference signals do not exceed a predetermined level value (L 1 ,L 2 ).