Patent ID: 7433545

Claim:
An image processing apparatus for correcting a defective portion in image data having a plurality of pixels, the apparatus comprising: a luminance adjusting section for adjusting luminance of deflective pixels included in the image data; a target pixel selecting section for selecting one target pixel from the plurality of defective pixels included in the image data; a normal pixel searching/detecting section for searching/detecting a normal pixel on each of opposed sides across the target pixel along each of a plurality of search lines extending through the target pixel; a pixel value ratio calculating section for calculating, for each said search line, a first pixel value ratio which is a ratio between a pixel value of one normal pixel located on one side across the target pixel and a pixel value of a further normal pixel located on the other side across the target pixel, a second pixel value ratio which is a ratio between the pixel value of said one normal pixel and a pixel value of said target pixel after the luminance adjustment thereof, and a third pixel value ratio which is a ratio between the pixel value of said further normal pixel and the pixel value of said target pixel after the luminance adjustment thereof; a weight coefficient calculating section for calculating a weight coefficient for each said search line, based on said first, second and third pixel value ratios; an interpolation value calculating section for calculating an interpolation value for the target pixel for each said search line, based on the pixel values of the normal pixels detected by the normal pixel searching/detecting section along that search line; a correction value calculating section for calculating a correction value for said target pixel, based on said weight coefficient for each said search line and said interpolation value for said target pixel; and a correcting section for correcting said target pixel based on said correction value calculated by said correction value calculating section.