PROBLEM TO BE SOLVED: To provide a device for discriminating a portion where a foreign substance is attached to an object. SOLUTION: An image data obtained from an image data acquisition unit 21 by irradiating an object W to be photographed with light and taking a picture in a plurality of states including a state in which the exposure is raised above an appropriate exposure to obtain images having different exposures. A foreign matter discriminator that discriminates foreign matter. [Selection diagram] Fig. 1【課題】対象物に異物が付着した部位の判別装置を提供する。【解決手段】撮影対象物Wに光を照射するとともに適正露出以上に露出を上げた状態を含む複数の状態で撮影して異なる露出の画像を得、画像データ取得部21から得る、画像データから異物を判別する異物判別装置。【選択図】図1