Output of a gyro sensor is read at intervals of control time ts, time
integration is carried out, an integrated value is computed, and an
amount of change in an integrated value is determined from a difference
between the calculated integrated value and an integrated value of a
previous time. Thereafter, on the basis of the amount of change and a
delay time determined by a shaking correcting module and the control
time, an addition value (an acceleration value of an integrated value of
the current time) is computed in order to obtain an amount of movement of
a shift lens which can compensate tilting of an optical axis of a lens.
After the computed addition value is added to the integrated value of the
current time, a control value for moving the shift lens is computed by
using the integrated value after addition.