culating unit which calculates a white balance correction coefficient for each of the areas, a white balance setting unit which sets the calculated white balance correction coefficient for each of the areas, and a green area determining unit which determines whether or not each of the blocks is a green area based on the color information.