主权项 |
1. A shape measuring method, comprising
a step of determining an area from which a light-section line is extracted, the step of determining the area comprising: extracting a light-section line from reflected light of slit light projected onto an object with a stereoscopic shape moving in a predetermined direction; determining areas in which an image processing is performed by:
drawing N area division lines (N is an integer greater than or equal to 1) in a region including the extracted light-section line, to divide the region into (N+1) small areas, the area division lines extending in the predetermined direction;sequentially, setting longitudinal regions, each extended in the predetermined direction by an amount corresponding to a predetermined number of pixels, with a position of the light-section line present in a corresponding one of the small areas at a center thereof; andsequentially, performing the image processing in an overall region of the longitudinal regions provided for each of the small areas, the longitudinal regions being set in the setting step, measuring the stereoscopic shape of the object based on the light-section line; and sequentially, determining a next area in which a next image processing is performed based on a location and a shape of the extracted light-section line. |