Patent ID: 7948528

Claim:
A gain calculating device for calculating a white balance gain at least for an image captured through strobe illuminated photography, the device comprising: a block dividing unit for dividing the image captured through strobe illuminated photography into a plurality of blocks; an identification unit for identifying, from among the divided blocks, a highly-influenced block, which is a block presumed to have been greatly influenced by strobe light; a first estimation unit for estimating, as a degree of first contribution, a degree of contribution of strobe light on the basis of at least one of the position of the highly-influenced block in the image and a difference between brightness of the highly-influenced block and brightness of other blocks; a second estimation unit for estimating the degree of contribution of strobe light as the degree of second contribution on the basis of a distance to a subject; and a gain calculating unit for calculating a white balance gain from at least the degree of first contribution and the degree of second contribution.