- SS-HQ1 Application Notes -
Ver.1.0.0 January 7, 2005
154
Blemish Detection and Compensation Modes
There are two blemish detection and compensation modes (static detection and compensation functions):
normal static detection and compensation mode and one-push static detection and compensation mode. (For
further details on the static detection and compensation functions, see “11.2 CCD blemish detection and
compensation.”)
1. Normal static detection and compensation mode : Mode for manually writing the detection result to EEPROM
2. One-push static detection and compensation mode : Mode in which detection result is automatically written to EEPROM
Table 11.1-5 Parameters for setting static detection
Parameter
Description
ADJMODE
CAT12_Byte2
Adjustment mode switching
BLMDETFIN
CAT12_Byte4_bit6
Static detection end flag
BLMDETAGC
CAT21_Byte1
AGC gain setting during static detection operation
OPSHBLMDET CAT21_Byte2_bit0
Static automatic EEPROM writing function ON/OFF
0[h]:OFF/1[h]:ON
DEFON CAT1_Byte1_bit6
0[h]: Blemish compensation function OFF
1[h]: Blemish compensation function ON
DETREFL CAT11_Byte5(LSB)
DETREFM CAT11_Byte9_bit0-1(MSB)
Ordinary blemish threshold level setting
LARGREFL CAT11_Byte7(LSB)
LARGREFM CAT11_Byte9_bit4-5(MSB)
Adjustment mode switching
Setting procedure
Preparation: Shield the CCD from light, such as by closing the iris of the lens.
1. Normal static detection and compensation mode
(OPSHBLMDET=0[h])
1. Set OPSHBLMDET to 0[h] (OPSHBLMDET=0[h]) (sets normal static detection and compensation mode).
2. Set the blemish compensation function to ON. (DEFON=1[h])
3. Set the blemish detection range. (See “11.2 CCD blemish detection and compensation.”)
4. Set the detection threshold levels in DETREFL/M and LARGEREFL/M.
5. In BLMDETAGC, set the AGC gain to be applied during blemish detection.
6. Set ADJMODE to 22[h] (ADJMODE=22[h]) (starts blemish detection and compensation).
7. Read the parameters. If BLMDETFIN is 1[h] (BLMDETFIN=1[h]), detection and compensation have ended.
8. Write the value of CAT11 BLMDET1 Bytes 20-147 (parameters storing detection results) to EEPROM.
9. Set ADJMODE to 0[h] (ADJMODE=0[h]) (resets the normal operation mode).
2. One-push static detection and compensation mode
(OPSHBLMDET=1[h])
1. Set OPSHBLMDET to 1[h] (sets one-push static detection and compensation mode).
2. Set the blemish compensation function to ON. (DEFON=1[h])
3. Set the blemish detection range. (See “11.2 CCD blemish detection and compensation.”)
4. Set the detection threshold levels in DETREFL/M and LARGEREFL/M.
5. In BLMDETAGC, set the AGC gain to be applied during blemish detection.
6. Set ADJMODE to 22[h] (ADJMODE=22[h]) (starts blemish detection and compensation).
7. Read the parameters. If BLMDETFIN is 1[h] (BLMDETFIN=1[h]), detection and compensation have ended.
8. Set ADJMODE to 0[h] (ADJMODE=0[h]) (resets the normal operation mode).
* For further details on the parameters, see “11.2 CCD blemish detection and compensation.”