摘要 |
[Problem] To prevent image quality degradation caused by overcorrection while improving visibility of dark areas. [Solution] A reflectance calculation unit (27) stores a parameter (RGain) for adjusting the amplitude of a reflectance component (R). A lighting correction unit (25) generates a corrected lighting component (L1) from a lighting component (L) and a formula (L1=(log(LAmp*L+1))/(log(LAmp+1))). An image resynthesis unit (29) obtains a corrected lighting component (L ) from L =LGain*L1+(1 LGain)*L. The image resynthesis unit (29) also calculates a corrected image (Iout) from a formula (Iout=exp(logL +RGain(logI logL))) on the basis of the corrected lighting component (L ) and a corrected reflectance (R ). By determining the value of a corrected lighting component (L ) using a mixture ratio (LGain) of the output value (L1) of the correction function and the original lighting component (L) it is possible to maintain contrast to a certain extent while creating a natural image. |