Patent ID: 8860798

Claim:
An image-capturing device comprising: an image-capturing unit that generates image data by subjecting object light received by an image sensor to photoelectric conversion; a color information acquisition processing module that obtains color information from the image data; a determination processing module that determines whether the image data have been generated by underwater photography or onshore photography; an underwater color determination area setting processing module that sets an underwater color determination area in color space coordinates for performing an underwater color determination; an evaluation value mapping processing module that maps a color balance evaluation value, which is obtained from the image data, on the color space coordinates; an underwater color balance reference setting processing module that sets an underwater color balance reference that serves as a color correction reference when color correction is performed on image data picked up underwater; an estimation processing module that estimates an underwater color balance on the basis of the color balance evaluation value mapped on the underwater color determination area and the underwater color balance reference in a case where the determination processing module determines that the image data have been generated by underwater photography; an underwater color correction data calculation processing module that calculates underwater color correction data on the basis of the color information obtained by the color information acquisition processing module and the underwater color balance estimated by the estimation processing module; and a color correction processing module that performs color correction on the image data generated by underwater photography on the basis of the underwater color correction data calculated by the underwater color correction data calculation processing module.