1. An inspecting apparatus comprising: an image pickup unit configured to generate, for each of different exposure times, image data including an inspection region, which is an image region equivalent to an inspection part of an inspection target object; a weighted-image-data generating unit configured to weight, for each of the image data generated with the exposure times different from one another, pixel data of a region where a difference in gradation of pixel values is relatively large among pixel regions included in the image data and generate weighted image data; an image-data combining unit configured to generate combined image data obtained by combining the generated respective weighted image data; and a determining unit configured to determine a state of the inspection region on the basis of image data of a reference image set as an inspection reference for the inspection part and the generated combined image data.