A three-dimensional image inspection method for conducting an outer appearance inspection, based on three-dimensional composed image having height information of an inspection object, the method comprising the steps of;
- promoting a user to select any of a first composition mode in which noise removal processing of the three-dimensional composed image is performed, and a second composition mode in which dead angle removal processing of the three-dimensional composed image is performed;
- applying measurement light to the inspection object at a first incident angle, and receiving reflected light reflected from the inspection object at a first reflection angle by a first light projecting/receiving part, and meanwhile, applying measurement light to the same inspection object at a second incident angle, and receiving reflected light reflected from the inspection object at a second reflection angle by a second light projecting/receiving part, and in accordance with a principle of triangulation, generating first three-dimensional data, based on first light receiving amount data obtained from the first light projecting/receiving part, and meanwhile, generating second three-dimensional data, based on second light receiving amount data obtained from the second light projecting/receiving part;
- when the first three-dimensional data and the second three-dimensional data are composed to generate a three-dimensional composed image having information in a height direction, in accordance with the selection of the first composition mode and the second composition mode,
- generating the three-dimensional composed image, based on the three-dimensional data measured by both the first light projecting/receiving part and the second light projecting/receiving part with respect to respective pixels configuring the three-dimensional composed image, when the first composition mode is selected, and
- generating the three-dimensional composed image, based on the three-dimensional data measured by any one or both of the first light projecting/receiving part and the second light projecting/receiving part with respect to the respective pixels when the second composition mode is selected;
- causing a display part to display the three-dimensional composed image composed by a composed image generation part;
- and
- conducting the outer appearance inspection of the inspection object, based on the composed three-dimensional composed image.