A kind of projection three-dimensional measurement method
Technical field
The present invention relates to a kind of method for three-dimensional measurement, be specifically related to a kind of three-dimensional measurement of objects method of utilizing shadow casting technique.
Background technology
At present, existing phase modulation (PM) demodulation 3 dimension profilometries are white light scanning survey modes.Following technical characterictic is arranged: the directional light of light source generation before this, structured light process lens lighting measuring object through the grating generation, after grating moved N time, image collecting device was gathered N width of cloth image successively, calculated two three-dimensional Fig. 3 through the phase modulation (PM) demodulating algorithm and tieed up measurement.When scanning and measuring apparatus is measured, the intensity of light source, it is constant that the time shutter of camera and yield value keep, like this when the bright dark variation of measuring object surface color is obvious, as there being the surface of black and white simultaneously, because CCD is subjected to the restriction of sensitization dynamic range mutually, can exist under-exposure simultaneously and situation overexposure, the common white photoscanning can't obtain 3 dimension measurement results of entire image like this.
Summary of the invention
The present invention is directed to the deficiencies in the prior art, development and Design goes out a kind of method for three-dimensional measurement that can solve the big contrast measurand of black and white;
The present invention is achieved by the following technical solutions:
A kind of projection three-dimensional measurement method is set the intensity of light source at twice, and camera exposure time and yield value divide its surperficial highlights respectively and dark-part is done three-dimensional measurement, and measurement result is done screening according to reservation threshold, obtain testee surface three dimension result at last.
A kind of projection three-dimensional measurement method is the raster image of gathering reflection of testee dark-part and testee highlights sub reflector respectively furtherly; Use identical phase modulation (PM) demodulating algorithm to calculate twice three-dimensional measuring result of testee then, wherein once being benchmark, if the gray-scale value of pixel can't reach threshold values, make alternatively of the measurement result of another time, finally obtain the three-dimensional measuring result of measurand highlights branch and dark-part.
A kind of projection three-dimensional measurement method may further comprise the steps furtherly:
(1) sets camera and be the long time shutter, the high-gain mode, projection light source is a high brightness, and projection and gather N and open the reflection picture of structured light on the measuring object surface successively calculates three-dimensional result and marks the big pixel with the setting threshold values of in N time is measured average gray value simultaneously;
(2) setting camera is short exposure time, the low gain mode, projection light source is low-light level, projection and gather N and open the reflection picture of structured light successively on the measuring object surface, calculate three-dimensional result mark simultaneously in N time is measured average gray value less than with the pixel of setting threshold values;
(3) be benchmark with once measurement data wherein at last, wherein the three-dimensional value of the pixel crossed of mark substitutes with the height value of another time measurement, draws the three-dimensional value of measuring object surface highlights branch and dark-part at last.
A kind of projection three-dimensional measurement method may further comprise the steps furtherly:
(1) the projection structured light first time is set camera and is the long time shutter, and high-gain mode, projection light source are high brightness, gather the reflectogram image scale and put into one group; The setting camera is a short exposure time, and low gain mode, projection light source are low-light level, gathers the reflectogram image scale and puts into one group;
(2) from the set of diagrams picture, calculate three-dimensional result mark simultaneously in N time is measured average gray value big with the pixel of setting threshold values, from another group calculate image three-dimensional result mark simultaneously in N time is measured average gray value less than with the pixel of setting threshold values, be benchmark at last with once measurement data wherein, wherein the three-dimensional value of the pixel crossed of mark substitutes with the height value of another time measurement, draws at last that measuring object surface highlights divides and the three-dimensional value of dark-part.
A kind of projection three-dimensional measurement method is not all demarcated pixel for twice measurement simultaneously and is got the mean value of twice measurement result as this pixel end product.
A kind of projection three-dimensional measurement method, the three-dimensional measurement that is carried out carries out at least twice, uses at least twice three-dimensional measurement, is integrated into final three-dimensional result at last.
When the present invention does three-dimensional measurement to testee, set the intensity of light source at twice, camera exposure time and yield value divide its surperficial highlights respectively and dark-part is done three-dimensional measurement, measurement result is done screening according to reservation threshold, obtain testee surface three dimension result at last.Use twice phase modulation (PM) demodulation three-D profile algorithm (PMP) to realize high precision and the repeatability of measuring, twice phase modulation (PM) demodulation three-D profile algorithm is existing algorithm.Can adapt to simultaneously the measurand of wide region in actual applications, when there is the black and white part simultaneously in the measurand surface, still can obtain the high accuracy three-dimensional measurement result, improve the dynamic range of PMP three-dimensional measurement greatly.Because the intensity of light source increases, the diffuse reflection on testee surface also strengthens simultaneously, can also reduce the influence of shade to three-dimensional measurement when dark-part being done measurement.For the king-sized measured object of bright dark variation surface, as minute surface, the black and white ceramic surface also can use above three-dimensional measurement twice, is integrated into final three-dimensional result at last.
Description of drawings
Fig. 1 is the process flow diagram of embodiment 1 method.
Fig. 2 is the process flow diagram of embodiment 2 methods.
Embodiment,
Embodiment 1
Described referring to accompanying drawing 1.
At first gather the measuring object surface and be dark three-dimensional data:
Set the CCD camera and be the long time shutter, the high-gain mode, projection light source is a high brightness, and projection and gather N and open the reflection picture of structured light on the measuring object surface successively calculates three-dimensional result and marks the big pixel with the setting threshold values of in N time is measured average gray value simultaneously.
Next is gathered the measuring object surface and is bright three-dimensional data, and method is as follows:
Setting the CCD camera is short exposure time, the low gain mode, projection light source is low-light level, projection and gather N and open the reflection picture of structured light successively on the measuring object surface, calculate three-dimensional result mark simultaneously in N time is measured average gray value less than with the pixel of setting threshold values.
Be benchmark with once measurement data wherein at last, wherein the three-dimensional value of the pixel crossed of mark substitutes with the height value of another time measurement, draws the three-dimensional value of measuring object surface highlights branch and dark-part at last.All do not demarcate pixel for twice measurement simultaneously and can get the mean value of twice measurement result yet as this pixel end product.For the king-sized measured object of bright dark variation surface, as minute surface, the black and white ceramic surface also can use above three-dimensional measurement twice, is integrated into final three-dimensional result at last.
This method is applicable to that projection light source switching required time is shorter than the camera occasion in every frame data transmission time.
Embodiment 2
Described referring to accompanying drawing 2.
Projection is structured light for the first time, sets camera and is the long time shutter, and high-gain mode, projection light source are high brightness, gather the reflectogram image scale and put into the A group; The setting camera is a short exposure time, and low gain mode, projection light source are low-light level, gathers the reflectogram image scale and puts into the A group.
From A group image, calculate three-dimensional result and mark the big pixel with the setting threshold values of in N time is measured average gray value simultaneously, from B group image, calculate three-dimensional result mark simultaneously in N time is measured average gray value less than with the pixel of setting threshold values, be benchmark at last with once measurement data wherein, wherein the three-dimensional value of the pixel crossed of mark substitutes with the height value of another time measurement, draws at last that measuring object surface highlights divides and the three-dimensional value of dark-part.All do not demarcate pixel for twice measurement simultaneously and can get the mean value of twice measurement result yet as this pixel end product.For the king-sized measured object of bright dark variation surface, as minute surface, the black and white ceramic surface also can use above three-dimensional measurement twice, is integrated into final three-dimensional result at last.
This method is applicable to that every frame data transmission time of camera is shorter than the occasion that projection light source is switched required time.