1. A measuring apparatus comprising: a first illumination unit configured to illuminate an object with pattern light of a first wavelength; a second illumination unit configured to illuminate the entire object brightly with light of a second wavelength different from the first wavelength; an optical system including a wavelength dividing element configured to divide the light from the object simultaneously illuminated by the first illumination unit and the second illumination unit into a light component of the first wavelength and a light component of the second wavelength; a first imaging element; a second imaging element; and a processor configured to process data of an image obtained by the first imaging element, and data of an image obtained by the second imaging element, thereby obtaining information of a shape of the object, wherein the first imaging element receives the pattern light of the first wavelength reflected by the object, which is light transmitted through the wavelength dividing element but never reflected by the wavelength dividing element, thereby obtaining a first image representing a three-dimensional shape of the object, and the second imaging element receives the Light of the second wavelength reflected by the object, which is light reflected by the wavelength dividing element, thereby obtaining a second image representing an edge of the object.