摘要 |
PROBLEM TO BE SOLVED: To provide a defective pixel detector, a defective pixel detection method and a program capable of determining a defective pixel existing on the thin line of a captured image or in the vicinity thereof, even in the case of image pick-up elements where color filters of four different colors are assigned at 2×2 pixel period.SOLUTION: A defective pixel detector includes a calculation unit for calculating the gradient of pixel values of a surrounding pixel group consisting of surrounding pixels of a plurality of colors arranged around an object pixel and continuous in a predetermined direction, a specification unit for specifying a direction of smallest gradient calculated in the calculation unit, and a determination unit for determining whether or not the object pixel is a defective pixel, based on the difference between the pixel value of the object pixel and the pixel value of the surrounding pixels of the same color as the object pixel, in the surrounding pixel group in a direction specified by the specification unit. |