Patent attributes
A determining unit 31 determines an image region of a foreign material in an imaged image generated by an imaging unit 22 by using an imaging optical system 21. A setting unit 32 sets a pressure, injection time, an injection direction of air injected to the foreign material, an injection pattern obtained by combining them and the like based on a determination result. A foreign material removal processing unit 33 adjusts air injection by an air injection adjusting unit 331 based on the setting by the setting unit 32 and injects from an air injecting unit 332 to the imaging optical system 21 to remove the foreign material adhering to the imaging optical system 21. The air is injected according to an adhesion condition of the foreign material, so that the foreign material adhering to the imaging optical system may be optimally removed.