摘要 |
PROBLEM TO BE SOLVED: To calculate the mean output value of pixels for optical black by excluding the outputs of defective pixels. SOLUTION: An image processing CPU 4 sets a register C at zero (C=0) and the total number H of the pixels for optical black(OB) at 100 (H=100) (step S101) and sets a pixel number h for OB at 2001 (h=2001) (step S102). Then the CPU 4 reads out the output values d(M, h) of the pixels for OB from a memory 5 (Fig. 1) (step S103) and judges whether or not the output values d(M, h) of the pixels for OB correspond to defective pixels (step S104). When the CPU 4 judges that the values d(M, h) correspond to the defective pixels, the CPU 4 subtracts '1' from the total number H of the pixels (step S105). When the CPU 4 judges that the values d(M, h) do not correspond to the defective pixels, the CPU 4 adds the output values d(M, h) of the pixels for OB to the register C (step S106). Then the CPU 4 judges whether or not the pixel number h for OB is 2100 (step S107). When the CPU 4 judges that the number h is not 2100, the CPU 4 adds '1' to the number h and returns to the step S103 (step S109). When the CPU 4 judges that the number h is 2100, the CPU 4 calculates the mean value C(M) by dividing the value of the register C by the total number H of the pixels (step S108).
|