Patent ID: 7580071

Claim:
An electronic camera comprising: an image sensor having an image pickup plane on an image plane of a shooting optical system; a formation changing section transferring, on the image pickup plane, an image forming position of the shooting optical system by driving a motion blur correction lens that is included in the shooting optical system in a direction perpendicular to an optical axis of the shooting optical system; and a control section driving and controlling the image sensor and the formation changing section, wherein: the electronic camera is settable to a blur correction mode by the control section, the blur correction mode being a mode in which the motion blur correction lens is driven in response to vibration, the electronic camera is settable to a foreign material detection mode by the control section, the foreign material detection mode being a mode in which the formation changing section is driven to set a plurality of states of image forming positions differing from each other on the image pickup plane, the image sensor is driven to obtain a plurality of images in each of the states, the plurality of images are compared to find a part of the image which has not varied in accordance with a change in the state of image forming position, and the found part is determined as an image of a foreign material, and the control section differentiates operation of the motion blur correction lens as the formation changing section between when the electronic camera is set to both the motion blur correction mode and the foreign material detection mode, and when the electronic camera is set only to the motion blur correction mode.