According to the invention, a processor CPU includes a scope information extracting section, a light source information extracting section, a main white balance searching section, a sub-white-balance extracting section, a main white balance update section, a sub-white-balance update section, and an image processing control section.