Patent ID: 8224070

Claim:
A three-dimensional measuring device comprising: an irradiation means capable of irradiating and switching among a multiplicity of light patterns having different periods and having a striped light intensity distribution on at least a measurement object; an imaging means having an imaging element capable of imaging reflected light from the measurement object irradiated by the light pattern; a displacement means for causing relative change in positional relationship between the imaging element and the measurement object; and an image processing means for performing three-dimensional measurement based on image data imaged by the imaging means, wherein the image processing means comprises: a first calculation means for performing a phase shift method calculation of height data as a first height data for each pixel unit of image data based on a multiply phase-shifted image data obtained by irradiating on a first position a multiply phase-shifted first light pattern having a first period; a second calculation means for performing a phase shift method calculation of height data as a second height data for each pixel unit of image data based on a multiply phase-shifted image data obtained by irradiating on a second position a multiply phase-shifted second light pattern having a second period, the second period being longer than the first period, and the second position being displaced by a half pixel pitch toward a predetermined direction from the first position; and a data replacement means for replacing the first height data, after identifying a line order of each of the first height data based on the second height data, with a value that took into account the identified line order.