摘要 |
A direction being across the defective pixel and along which pixels used to calculate a signal level of a defective pixel are located, is determined. A ratio between signal levels of pixels that are adjacent to the defective pixel and that have a different color from the defective pixel, and signal levels of pixels that are adjacent to pixels being located along the determine direction with respect to the defective pixel and having the same color as the defective pixel and that have a different color from the defective pixel, is acquired. A value obtained by multiplying an average value of the signal levels of the pixels used to calculate the signal level of the defective pixel by the calculated ratio is output as the signal level of the defective pixel. |