A three-dimensional measurement apparatus for measuring a three-dimensional shape of a measurement target, the apparatus comprising: a projecting unit configured to project, onto a measurement target, patterned light in which a two-dimensionally coded pattern, in which a plurality of types of words distinguishable from each other are two-dimensionally arranged, and a random pattern (Pr), in which a plurality of random pieces (Prp) each uniquely identifiable are irregularly arranged, are arranged so as not to cause mutual interference of these patterns; an image capturing unit including a first camera and a second camera configured to capture the measurement target onto which the patterned light is projected; a pattern storage unit configured to store the two-dimensionally coded pattern; a first calculation unit configured to select target pixels from a captured image that is captured by the first camera or the second camera, extract, for each of the selected target pixels, the word of the patterned light that is projected onto that pixel, and acquire a three-dimensional position of each of the target pixels based on the extracted word and the two-dimensionally coded pattern stored in the pattern storage unit; and a second calculation unit configured to, if one of the captured images that are captured by the first camera and the second camera is regarded as a reference image and the other captured image is regarded as a comparison image, extract feature points respectively corresponding to the random pieces from the reference image, perform stereo matching with respect to the comparison image using each of the extracted feature points, and determine a three-dimensional position of each of the feature points based on a stereo matching result. a projecting unit configured to project, onto a measurement target, patterned light in which a two-dimensionally coded pattern, in which a plurality of types of words distinguishable from each other are two-dimensionally arranged, and a random pattern (Pr), in which a plurality of random pieces (Prp) each uniquely identifiable are irregularly arranged, are arranged so as not to cause mutual interference of these patterns; an image capturing unit including a first camera and a second camera configured to capture the measurement target onto which the patterned light is projected; a pattern storage unit configured to store the two-dimensionally coded pattern; a first calculation unit configured to select target pixels from a captured image that is captured by the first camera or the second camera, extract, for each of the selected target pixels, the word of the patterned light that is projected onto that pixel, and acquire a three-dimensional position of each of the target pixels based on the extracted word and the two-dimensionally coded pattern stored in the pattern storage unit; and a second calculation unit configured to, if one of the captured images that are captured by the first camera and the second camera is regarded as a reference image and the other captured image is regarded as a comparison image, extract feature points respectively corresponding to the random pieces from the reference image, perform stereo matching with respect to the comparison image using each of the extracted feature points, and determine a three-dimensional position of each of the feature points based on a stereo matching result.