Patent ID: 9479708
Filing Date: 2016-10-25
CPC Classification: H04N

Claim Text:
1. An image processing device, comprising: a storage means for storing sets of correction information indicative of shading characteristics or correction characteristics for shading correction, wherein said shading characteristics each indicates distribution of shading relative to positions of an image captured, the shading being a phenomena in which, when the image captured is an image of a subject presenting a single color, pixel values of the image captured deviate from that resulting in the single color, and wherein the sets of the correction information are stored in association with a plurality of light-source types as shooting conditions, respectively; a trial correction means for performing trial shading correction on image data based on the sets of correction information stored in the storage means, the trial shading correction performed in relation to at least two light-source types out of the plurality of light-source types; a first selection means for comparing results of the shading correction with one another, the shading correction being performed by the trial correction means in relation to said at least two light-source types, and selecting a set of correction information that leads to a suitable shading-correction result, out of the sets of correction information stored in the storage means in association with the plurality of light-source types; and a correction means for performing shading correction on the image data based on the set of correction information selected by the first selection means, wherein the first selection means, in relation to each of the at least two light-source types, sorts pixels or pixel blocks each including a plurality of pixels into a plurality of classes related to values of a color component, based on the results of the shading correction performed in relation to the at least two light-source types; aggregates the number of the pixels or the pixel blocks of each of the classes and selects a set of correction information corresponding to a light-source type that results in a highest maximum value among aggregated values of the classes, as the set of correction information that leads to a suitable shading-correction result.