摘要 |
A digital camera (1) includes: an imaging unit (16) having an imaging element that includes a plurality of pixels, and generates a pixel value for each of the plurality of pixels as image data; a position specification unit (53) that specifies a position of a defective pixel among the plurality of pixels, in the image data generated by the imaging unit (16); a region specification unit (54) that specifies a region in the image data in which image noise occurs due to the defective pixel, based on the position specified by the position specification unit (53); and a correction unit (55) that corrects a pixel value of each of a plurality of pixels included in the region in the image data specified by the region specification unit (54), based on a weighted average of pixels values of a plurality of pixels located at a periphery of the region. |