摘要 |
<P>PROBLEM TO BE SOLVED: To provide an image processing unit and an image processing program capable of speedily correcting an image by retinex processing and capable of performing the retinex processing even under a situation, where it is difficult to secure the amount of memory normally required for executing the retinex processing. <P>SOLUTION: When there is no space area required for performing normal retinex processing in a RAM (S32:No), a space area flag remains off to indicate that the normal retinex processing cannot be executed, processing in S35-S39 is avoided, a normalization reflectance (refle) stored in the maximum frequency value memory is assigned to a term (refle) of a reflection light component value in formula (4) to calculate an output value Out<SB>y</SB>(S43). Namely, when a required memory area cannot be secured, a process 3 for filtering, a process 4 for calculating a logarithm value R, and a process 7 for normalizing the logarithm value R are skipped to execute a process 8 for generating an output value Out. <P>COPYRIGHT: (C)2009,JPO&INPIT |