Abstract:
A value of a current corresponding to a relationship between an illumination intensity instruction value and illumination intensity is calculated based on a previously obtained relationship between a current flowing through a light emitting device and the illumination intensity. A calibration table including the illumination intensity instruction value, the calculated value of the current, and the illumination intensity is created. A required illumination intensity is calculated based on exposure time per frame during autofocusing. An illumination intensity instruction value corresponding to the required illumination intensity is calculated using the calibration table. The calculated illumination intensity instruction value is set using the calibration table such that brightness of a measured image remains consistent even when a frame rate is changed.