1. A measuring device that measures a measurement object, the measuring device comprising: a two-dimensional measuring unit that obtains two-dimensional image data by performing image pickup on the measurement object; a three-dimensional measuring unit that obtains three-dimensional data by three-dimensionally measuring the measurement object; and an obtaining unit that detects a temporary edge of the measurement object using the three-dimensional data, sets an edge detection range in a two-dimensional image using the detected temporary edge, and detects an edge of the measurement object in the edge detection range using the two-dimensional image data to obtain shape information of the measurement object.