A fast imaging method of stereo matching based on geometric constraints
By using multi-step phase shift and depth constraint range to narrow the search range in structured light binocular imaging technology, the problem of slow imaging speed in the existing technology is solved, fast and high-precision three-dimensional reconstruction is achieved, and imaging efficiency is improved. .
Patent Information
- Application Number
- CN202111553545.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-17
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-12-17
AI Technical Summary
Existing structured light binocular imaging technology has slow imaging speed in fast measurement scenarios and requires the measured object to be stationary, making it difficult to meet the needs of fast measurement. This is mainly due to the long time-consuming matching point retrieval steps on the hardware side and the computing side.
Through the stereo matching fast imaging method based on geometric constraints, multi-step phase shift and depth constraint range are used to narrow the retrieval range, reduce the ambiguity of matching points and retrieval time, and use the 6-frequency wrapped phase of multi-frequency heterodyne solution to replace the fully expanded phase to improve imaging efficiency.
It effectively improves the imaging speed and accuracy, reduces the time required for imaging, reduces the ambiguity of matching points, and improves the imaging efficiency of the system.
Smart Images

Figure CN114283257B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of multi-eye imaging, and in particular relates to a stereo matching fast imaging method based on geometric constraints. Background Art
[0002] People have two eyes that can form disparity values for the same object and obtain the depth of the object in the real world based on the disparity. Therefore, in visual imaging, two cameras are usually used to obtain two-dimensional image information, and the disparity of the image is calculated to achieve the purpose of perceiving the three-dimensional world. In computer vision, the corresponding matching points and disparity are generally determined based on the correlation of the grayscale of the captured image. However, using the comparison of grayscale correlation as a basis will inevitably lead to the singularity of the disparity and the sparsity of pixels. Therefore, the disparity value obtained by this method must be time-consuming and sparse, which greatly reduces the speed, accuracy and resolution of imaging. On this basis, people consider projecting coded structured light on the object to artificially add a mark to the object to be measured. Based on the mark, a high-precision dense disparity map can be obtained quickly. This is the method of imaging using coded structured light.
[0003] In structured light binocular imaging, the general structured light binocular reconstruction point cloud method is relatively time-consuming, and the final imaging speed is difficult to exceed 3 seconds per frame, and it is necessary to ensure that the object to be measured is in a static state, which is difficult to be used in some scenes that require rapid measurement. Then there are two most time-consuming steps in the entire imaging process. On the hardware side, it is mainly to project a set of fringe grating images onto the object to be measured. This set of fringe images must be able to ensure that they can be fully unfolded after phase resolution, so that there are no ambiguous matching points in the matching point retrieval step, ensuring the correctness of the imaging results; on the computing side, it is the time to execute the matching point retrieval. The corresponding row retrieval needs to retrieve every pixel, which greatly slows down the imaging speed. Summary of the invention
[0004] The purpose of the present invention is to ensure imaging accuracy while speeding up imaging, and to provide a method for achieving the above purpose by simultaneously improving the number of images collected on the hardware side and reducing the retrieval phase matching range on the computing side.
[0005] Specifically, the geometric constraint-based stereo matching fast imaging method disclosed in the present invention comprises the following steps:
[0006] S101: completing the single-target positioning of the left and right cameras respectively, and the dual-target positioning of the left and right cameras relative to each other;
[0007] S102: The left and right cameras both use multiple multi-step phase shifts to expand into a wrapped phase below 8 frequencies through the relationship between different frequencies, and then perform a polar line correction operation on the wrapped phase;
[0008] S103: determining a range of search matching points through a depth constraint range, then finding candidate matching points of the left and right camera wrapping phases within the depth constraint range, and then determining final left and right camera corresponding matching points through the depth constraint range, level uniqueness, and left and right phase consistency check;
[0009] S104: Sub-pixelizing the corresponding matching points, and reconstructing the three-dimensional contour of the object to be measured according to the binocular positioning parameters;
[0010] S105: Compare the phase difference between the current measured object and the last measured object to determine whether a new depth object is added or whether there is a change in the depth range;
[0011] S106: If there is no significant difference or no new depth object is added in step S105, the depth information of the point cloud of the current measured object is counted to obtain the depth range of the current measured object, and the obtained depth range is passed to the depth constraint range; otherwise, the global depth range is assigned to the depth constraint range, and the depth constraint range is reserved for the next measurement;
[0012] S107: End measurement.
[0013] Furthermore, in step S101, through additional single-target positioning of left and right cameras, a depth is calculated for each left and right camera without using corresponding matching point information, providing one-dimensional auxiliary matching information for the subsequent matching point retrieval step, thereby reducing ambiguity in matching points and retrieval time.
[0014] Furthermore, in step S102, the fringe combination is not fully expanded, and multiple multi-step phase shifts are used to expand it into a wrapped phase below 8 frequencies through the relationship between different frequencies, so that the phase accuracy remains unchanged while reducing the number of fringes used, effectively improving the imaging efficiency of the system.
[0015] Furthermore, in the step S103, the candidate matching points of the left and right camera wrapped phases are found within the depth constraint range, and then the final left and right camera corresponding matching points are determined through the depth constraint range, level uniqueness and left and right phase consistency test, including:
[0016] Retrieving the right camera wrapped phase according to the left camera matching point wrapped phase value within the depth constraint range on the corresponding row, and selecting candidate matching points whose phase difference values are within a preset range; wherein the depth constraint range is set to the global depth range during the first measurement;
[0017] Find all possible expansion levels corresponding to the wrapped phase at the left camera matching point within the depth constraint range, use the consistency of the levels of the left and right camera matching points, add the candidate matching points and the possible levels in turn, exclude the candidate matching points outside the depth constraint range, subtract each candidate matching point from the left camera matching point at the same level in turn, and find the candidate matching point with the smallest depth difference and within the preset range.
[0018] Furthermore, before comparing the phase difference between the current measured object and the last measured object, a connection and corrosion operation is performed on the phase image to reduce the influence of the object moving or the existence of the object that does not need to be measured during reconstruction.
[0019] Furthermore, the method for determining whether a new deep object is added or the depth of the measured object has a significant change is:
[0020] The phase difference between the corresponding pixels of the current measured object and the last measured object is calculated. After the difference is rounded off, the number of pixels with the same difference is counted and a histogram is drawn. The horizontal axis of the histogram is the phase difference between the same pixel in the current measured image and the last measured image. i , the vertical axis is the number of phase difference values P( i );
[0021] The resulting histogram satisfies the Gaussian distribution and is calculated in Phase difference within the range i The corresponding P( i ) is , and standard deviation , where N and M are preset constants,
[0022] Calculated in Phase difference within the range i The corresponding P( i ) ;
[0023] when Less than the preset range and When Num is the total number of pixels, indicating that the depth of the object currently being measured has not changed much compared to the depth of the object last measured. and When , it means that there is no new depth object added in the current measurement compared with the last measurement; when both judgment conditions are met, it means that the measured object has not changed. α and is the proportionality coefficient;
[0024] when Greater than the preset range and When , it means that the depth of the object currently measured has changed greatly from that of the object last measured; and , it means that a new depth object has been added to the current measurement compared with the previous measurement; if any of the above judgment conditions is met, it means that the measured object has changed.
[0025] Furthermore, valid pixels refer to pixels with valid values at the same pixel position in the current measurement map and the previous measurement map;
[0026] If the same pixel position in the current measurement map and the previous measurement map is an invalid value, the pixel position is discarded; or the pixel position in the current measurement map is a valid value, and the pixel position in the previous measurement map is an invalid value, the pixel position is represented by the disappearance of the point cloud, and the output result is negative infinity; or the pixel position in the current measurement map is an invalid value, and the pixel position in the previous measurement map is a valid value, the pixel position is represented by the emergence of the point cloud, and the output result is positive infinity. In these three cases, the pixel is an invalid pixel;
[0027] The invalid value means that when calculating the phase, when the modulation value of the pixel value in the image is less than a preset value, the current phase pixel value is considered to be unreliable and an invalid point.
[0028] Furthermore, the global depth range is 200-2000 mm.
[0029] Compared with the prior art, the advantages of the present invention include:
[0030] Existing technology can effectively reduce the ambiguity when retrieving matching points and ensure the accuracy of measurement by projecting more stripe images. But it also brings a problem, that is, the general measurement speed is slow. With the current technology, it is difficult to improve the speed if you want to ensure accuracy; if the imaging speed is improved, the matching ambiguous points will also increase, and the accuracy will be difficult to ensure. The two affect each other. The advantage of the present invention is that the 6-frequency wrapped phase solved by multi-frequency heterodyne solution is used to replace the fully expanded phase. Although the ambiguity is partially increased, the number of projected stripes is greatly reduced, the projection time is reduced, and the overall speed is improved; for the increased ambiguity, the depth information is additionally calculated to effectively reduce the range to be searched, and the matching time can also be effectively reduced, the overall imaging speed can be improved, and the correct corresponding matching points can be obtained. The above two steps greatly reduce the time required for imaging and improve the efficiency of imaging. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 Flow chart of the stereo matching rapid imaging method of the present invention;
[0032] Figure 2The flowchart of searching matching points of left and right cameras of the present invention. DETAILED DESCRIPTION
[0033] The present invention is further described below in conjunction with the accompanying drawings, but the present invention is not limited in any way. Any changes or substitutions made based on the teachings of the present invention belong to the protection scope of the present invention.
[0034] The purpose of the present invention is to ensure imaging accuracy while speeding up imaging. A method is provided to achieve the above purpose by simultaneously improving the number of images collected on the hardware side and reducing the retrieval phase matching range on the computing side.
[0035] To achieve this object, the technical solution adopted by the present invention includes the following steps:
[0036] S101: Complete the single-target positioning of the left and right cameras respectively, and the dual-target positioning of the left and right cameras with each other; through the additional single-target positioning of the left and right cameras, a depth is calculated for each left and right camera without using the corresponding matching point information, providing one-dimensional auxiliary matching information for the subsequent matching point retrieval step, thereby reducing the ambiguity and retrieval time when matching points.
[0037] S102: Both left and right cameras use multiple multi-step phase shifts, which are expanded into wrapped phases below 8 frequencies through the relationship between different frequencies, and then polar line correction operations are performed on the wrapped phases, so that the phase accuracy remains unchanged while reducing the number of fringes used, effectively improving the imaging efficiency of the system.
[0038] S103: Determine the range of the search matching point through the depth constraint range, then find the candidate matching points of the left and right camera wrapped phases within the depth constraint range, and then determine the final left and right camera corresponding matching points through the depth constraint range, level uniqueness and left and right phase consistency check; specifically including: retrieve the right camera wrapped phase according to the left camera matching point wrapped phase value within the depth constraint range interval on the corresponding row, and select the candidate matching point whose phase difference value is within a preset range; wherein the depth constraint range is set to the global depth range during the first measurement;
[0039] Find all possible expansion levels corresponding to the wrapped phase at the left camera matching point within the depth constraint range, use the consistency of the levels of the left and right camera matching points, add the candidate matching points and the possible levels in turn, exclude the candidate matching points outside the depth constraint range, subtract each candidate matching point from the left camera matching point at the same level in turn, and find the candidate matching point with the smallest depth difference and within the preset range.
[0040] S104: Sub-pixelizing the corresponding matching points, and reconstructing the three-dimensional contour of the object to be measured according to the binocular positioning parameters;
[0041] S105: Compare the phase difference between the current measured object and the last measured object to determine whether a new depth object is added or whether there is a change in the depth range; before comparing the phase difference between the current measured object and the last measured object, perform a connection and corrosion operation on the image to reduce the impact of the object moving or the existence of objects that do not need to be measured during reconstruction.
[0042] The method to judge whether there is a new depth object added or the depth of the measured object has a significant change is:
[0043] The phase difference between the corresponding pixels of the current measured object and the last measured object is calculated. After the difference is rounded off, the number of pixels with the same difference is counted and a histogram is drawn. The horizontal axis of the histogram is the phase difference between the same pixel in the current measured image and the last measured image. i , the vertical axis is the number of phase difference values P( i );
[0044] The resulting histogram satisfies the Gaussian distribution and is calculated in Phase difference within the range i The corresponding P( i ) , and standard deviation , where N and M are preset constants,
[0045] Calculated in Phase difference within the range i The corresponding P( i ) ;
[0046] when Less than the preset range and When Num is the total number of pixels, indicating that the depth of the object currently being measured does not change much from the last measured object; when and When , it means that there is no new depth object added in the current measurement compared with the last measurement; when both judgment conditions are met, it means that the measured object has not changed. α and is the proportionality coefficient;
[0047] when Greater than the preset range and When , it means that the depth of the object currently measured has changed greatly from that of the object last measured; and , it means that a new depth object has been added to the current measurement compared with the previous measurement; if any of the above judgment conditions is met, it means that the measured object has changed.
[0048] S106: If there is no significant difference or no new depth object is added in step S105, the depth information of the point cloud of the current measured object is counted to obtain the depth range of the current measured object, and the obtained depth range is passed to the depth constraint range; otherwise, the global depth range is assigned to the depth constraint range, and the depth constraint range is reserved for the next measurement;
[0049] S107: End measurement.
[0050] In order to make the technical solution and beneficial effects of the present invention clearer, the present invention is described below in conjunction with actual examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0051] Example
[0052] First of all, in addition to calibrating the binocular parameters, the left and right cameras are also calibrated separately. The advantage of this is that a depth is calculated for each camera without using the corresponding matching point information, which provides one-dimensional auxiliary matching information for retrieving corresponding matching points. It can effectively exclude some erroneous candidate points whose depth of monocular reconstruction does not meet the depth range, reducing the ambiguity and retrieval time when matching points.
[0053] Exemplarily, the single target positioning method is implemented using the following formula:
[0054] (1)
[0055] (2)
[0056] (3)
[0057] The product of the first and second matrices on the right side of formula 1 is the camera intrinsic parameter, and the third matrix is the camera extrinsic parameter. Formula 2 represents the coordinates of the three-dimensional point converted from the world coordinate system to the camera coordinate system. In formula 3 represents the fully expanded phase, a 1 - a 8 It represents the parameters after single-target timing fitting. The process of dual-target calibration includes preparing the calibration plate, segmenting the acquired image, obtaining the region of interest and calibrating it, and obtaining the calibration result.
[0058] Use 3+4-step phase-shifted fringe images with a frequency of 58+64 to project and shoot, use multi-frequency heterodyne method to solve it into 6-frequency wrapped phase, and use binocular positioning parameters to perform epipolar correction on the wrapped phase, specifically including: shooting 3+4-step phase-shifted fringe images and using multi-frequency heterodyne method to solve the wrapped phase, and performing epipolar correction on the wrapped phase according to binocular positioning parameters, so that the left and right cameras are coplanar and aligned. At this time, using the incompletely unfolded wrapped phase image as the basis for retrieving the corresponding matching points will cause ambiguity in obtaining parallax, so using monocular reconstruction to obtain depth information and depth constraint range can effectively eliminate the ambiguity of parallax;
[0059] Take the 4-step phase shift method as an example:
[0060]
[0061]
[0062]
[0063]
[0064] Each move phases, CCD takes a total of 4 interference fringes I 1 , I 2 , I 3 , I 4 , a total of four equations, solve the three unknown quantities A, B and The three-step phase shift method and the four-step phase shift method are common knowledge in the art and will not be described in detail.
[0065] The next step is a time-consuming step on the computing side. Within the depth constraint range, the right camera wrapped phase is searched on the corresponding row according to the left camera matching point wrapped phase value. The candidate matching points with phase difference values within a certain range are pre-set after multiple experiments. For example, the certain range is set to be less than 0.2.
[0066] Then find all possible expansion levels corresponding to the wrapped phase at the left camera matching point within the depth constraint range, use the consistency of the levels of the left and right camera matching points, add the candidate matching points and possible levels in sequence, exclude the candidate matching points outside the depth constraint range, and subtract each candidate matching point from the left camera matching point in sequence according to the same level to find the candidate matching points with a depth difference within a certain range. The candidate matching points with a depth difference within a certain range are found, and the certain range is pre-set after multiple experiments. Exemplarily, the certain range is set to be less than 20mm.
[0067] Use the left and right phase consistency check to remove the singular points with different left and right phases from these points, and the remaining points are the final matching points, that is, the matching points with inconsistent left and right camera phases are removed from the candidate matching points to obtain the final matching points; after finding the matching points, the three-dimensional contour of the object under test can be reconstructed according to the binocular positioning parameters. Among them, the depth constraint range is set to the global depth range during the first measurement, and preferably, the global depth range is preset to 500-1200mm.
[0068] Sub-pixelization is performed on the final matching points found and binocular reconstruction is performed; sub-pixelization is to insert smaller pixels, i.e. "sub-pixels", between two pixels. "Sub-pixels" are approximately calculated through software processing, and the algorithms include bilinear interpolation algorithms, etc., which are common knowledge in the field and will not be described in detail in this embodiment. Three-dimensional reconstruction calculates the projection matrix of the camera and the three-dimensional coordinates of the matching points from the obtained matching points, which are common knowledge in the field and will not be described in detail in this embodiment.
[0069] Finally, choose whether to use the depth position of the current reconstructed point cloud as the depth constraint area for the next reconstruction. The judgment method is as follows:
[0070] There are four different situations between pixel positions in the same image in the above changes, which need to be classified and analyzed:
[0071] 1) The pixel positions that are the same as those in the previous measurement are invalid values, so the pixel positions are discarded;
[0072] 2) If the pixel position of the current and last measurement images is the same as the valid value, the pixel position is subtracted;
[0073] 3) If the pixel position of the current measurement map is a valid value, and the pixel position of the previous measurement map is an invalid value, the pixel position is represented by the disappearance of the point cloud, and the output result is negative infinity;
[0074] 4) The pixel position of the current measurement map is an invalid value, and the pixel position of the previous measurement map is a valid value. The pixel position is represented as a point cloud burst, and the output result is positive infinity.
[0075] The effective value means that when the modulation value of the pixel value in the phase image is less than the preset value when calculating the phase, the current phase pixel value is considered to be unreliable and an invalid point. In this embodiment, the preset value is 5.
[0076] For case 2), the phase difference between the corresponding pixel of the current measured object and the last measured object is calculated, and the number of pixels with the same difference is counted after the difference is rounded off, and a histogram is drawn. The horizontal axis of the histogram is the phase difference between the same pixel in the current measured image and the last measured image. i , the vertical axis is the number of phase difference values P( i );
[0077] The resulting histogram satisfies the Gaussian distribution and is calculated in Phase difference within the range i The corresponding P( i ) , and standard deviation , where N and M are preset constants,
[0078] Calculated in Phase difference within the range i The corresponding P( i ) ;
[0079] when Less than the preset range and When , it means that the depth of the object measured in the current measurement has not changed much compared with the last measurement; when and When , it means that there is no new depth object added in the current measurement compared with the last measurement; when both judgment conditions are met, it means that the measured object has not changed. α and is the proportionality coefficient, where Num is the total number of pixels, that is, the sum of all pixels in the horizontal and vertical axes of the image;
[0080] when Greater than the preset range and When , it means that the depth of the object measured last time has changed significantly; and When , it means that the current measurement has a new depth object added compared to the previous measurement; if any of the above judgment conditions is met, it means that the measured object has changed. Preferably, in this embodiment α and is 1 / 6.
[0081] End measurement.
[0082] Compared with the prior art, the advantages of the present invention include:
[0083] Existing technology can effectively reduce the ambiguity when retrieving matching points and ensure the accuracy of measurement by projecting more stripe images. But it also brings a problem, that is, the general measurement speed is slow. With the current technology, it is difficult to improve the speed if you want to ensure accuracy; if the imaging speed is improved, the matching ambiguous points will also increase, and the accuracy will be difficult to ensure. The two affect each other. The advantage of the present invention is that the 6-frequency wrapped phase solved by multi-frequency heterodyne solution is used to replace the fully expanded phase. Although the ambiguity is partially increased, the number of projected stripes is greatly reduced, the projection time is reduced, and the overall speed is improved; for the increased ambiguity, the depth information is additionally calculated to effectively reduce the range to be searched, and the matching time can also be effectively reduced, the overall imaging speed can be improved, and the correct corresponding matching points can be obtained. The above two steps greatly reduce the time required for imaging and improve the efficiency of imaging.
[0084] As used herein, the word "preferred" is intended to be used as an example, instance, or illustration. Any aspect or design described herein as "preferred" is not necessarily to be construed as being more advantageous than other aspects or designs. On the contrary, the use of the word "preferred" is intended to present concepts in a specific way. The term "or" as used in this application is intended to mean an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or clear from the context, "X uses A or B" means any one of the naturally included permutations. That is, if X uses A; X uses B; or X uses both A and B, then "X uses A or B" is satisfied in any of the foregoing examples.
[0085] Moreover, although the present disclosure has been shown and described with respect to one or implementations, those skilled in the art will think of equivalent variations and modifications based on the reading and understanding of this specification and the accompanying drawings. The present disclosure includes all such modifications and variations, and is limited only by the scope of the appended claims. In particular, with respect to the various functions performed by the above-mentioned components (such as elements, etc.), the terms used to describe such components are intended to correspond to any component (unless otherwise indicated) that performs the specified function of the component (such as it is functionally equivalent), even if the structure is not equivalent to the disclosed structure of the function in the exemplary implementation of the present disclosure shown herein. In addition, although the specific features of the present disclosure have been disclosed with respect to only one of several implementations, such features can be combined with one or other features of other implementations that may be desired and advantageous for a given or specific application. Moreover, insofar as the terms "including", "having", "containing" or their variations are used in specific embodiments or claims, such terms are intended to be included in a manner similar to the term "comprising".
[0086] The functional units in the embodiments of the present invention may be integrated into a processing module, or each unit may exist physically separately, or multiple or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc. The above-mentioned devices or systems may execute the storage method in the corresponding method embodiment.
[0087] To sum up, the above embodiment is an implementation mode of the present invention, but the implementation mode of the present invention is not limited by the embodiment. Any other changes, modifications, substitutions, combinations, and simplifications that deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.
Claims
1. A fast stereo matching imaging method based on geometric constraints, characterized in that: The following steps are involved: S101: completing the single-target positioning of the left and right cameras respectively, and the dual-target positioning of the left and right cameras relative to each other; S102: The left and right cameras both use multiple multi-step phase shifts to expand into a wrapped phase below 8 frequencies through the relationship between different frequencies, and then perform a polar line correction operation on the wrapped phase; S103: determining a range of search matching points through a depth constraint range, then finding candidate matching points of the left and right camera wrapping phases within the depth constraint range, and then determining final left and right camera corresponding matching points through the depth constraint range, level uniqueness, and left and right phase consistency check; S104: Sub-pixelizing the corresponding matching points, and reconstructing the three-dimensional contour of the object to be measured according to the binocular positioning parameters; S105: Compare the phase difference between the current measured object and the last measured object to determine whether a new depth object is added or whether there is a change in the depth range; S106: If there is no significant difference or no new depth object is added in step S105, the depth information of the point cloud of the current measured object is counted to obtain the depth range of the current measured object, and the obtained depth range is passed to the depth constraint range; otherwise, the global depth range is assigned to the depth constraint range, and the depth constraint range is reserved for the next measurement; The method for judging whether a new deep object is added or the depth of the measured object has a significant change is: The phase difference between the corresponding pixels of the current measured object and the last measured object is calculated. After the difference is rounded off, the number of pixels with the same difference is counted and a histogram is drawn. The horizontal axis of the histogram is the phase difference between the same pixel in the current measured image and the last measured image. i , the vertical axis is the number of phase difference values P( i ); The resulting histogram satisfies the Gaussian distribution, so the calculation is Phase difference within the range i The corresponding P( i ) is , and standard deviation , where N and M are preset constants; Calculated in Phase difference within the range i The corresponding P( i ) ; when Less than the preset range and When Num is the total number of pixels, indicating that the depth of the object currently being measured has not changed much compared to the depth of the object last measured. and When , it means that there is no new depth object added in the current measurement compared with the last measurement; when both judgment conditions are met, it means that the measured object has not changed. α and is the proportionality coefficient; when Greater than the preset range and When , it means that the depth of the object currently measured has changed greatly from that of the object last measured; and , it means that a new depth object has been added to the current measurement compared with the previous measurement; if any of the above judgment conditions is met, it means that the measured object has changed; S107: End measurement.
2. The geometric constraint-based stereo matching fast imaging method according to claim 1, characterized in that: In the step S101, through the additional single-target positioning of the left and right cameras, a depth is calculated for each of the left and right cameras without using the corresponding matching point information, so as to provide one-dimensional auxiliary matching information for the subsequent matching point retrieval step.
3. The method for fast stereo matching imaging based on geometric constraints according to claim 1, characterized in that: In the step S102, the fringe combination is not fully expanded, and multiple multi-step phase shifts are used to expand it into a wrapped phase below 8 frequencies through the relationship between different frequencies, so that the phase accuracy remains unchanged while reducing the number of fringes used, effectively improving the imaging efficiency of the system.
4. The geometric constraint-based stereo matching fast imaging method according to claim 1, characterized in that: In the step S103, candidate matching points of the left and right camera wrapped phases are found within the depth constraint range, and then the final left and right camera corresponding matching points are determined through the depth constraint range, level uniqueness and left and right phase consistency test, including: Retrieving the right camera wrapped phase according to the left camera matching point wrapped phase value within the depth constraint range on the corresponding row, and selecting candidate matching points whose phase difference values are within a preset range; wherein the depth constraint range is set to the global depth range during the first measurement; Find all possible expansion levels corresponding to the wrapped phase at the left camera matching point within the depth constraint range, use the consistency of the levels of the left and right camera matching points, add the candidate matching points and the possible levels in turn, exclude the candidate matching points outside the depth constraint range, subtract each candidate matching point from the left camera matching point at the same level in turn, and find the candidate matching point with the smallest depth difference and within the preset range.
5. The geometric constraint-based stereo matching fast imaging method according to claim 1, characterized in that: Before comparing the phase difference between the current measured object and the last measured object, a connection and corrosion operation is performed on the phase image to reduce the influence of the object moving or the existence of the object that does not need to be measured during reconstruction.
6. The geometric constraint-based stereo matching fast imaging method according to claim 1, characterized in that: Valid pixels refer to pixels with valid values at the same pixel position in the current measurement map and the previous measurement map; If the same pixel position in the current measurement map and the previous measurement map is an invalid value, the pixel position is discarded; or the pixel position in the current measurement map is a valid value, and the pixel position in the previous measurement map is an invalid value, the pixel position is represented by the disappearance of the point cloud, and the output result is negative infinity; or the pixel position in the current measurement map is an invalid value, and the pixel position in the previous measurement map is a valid value, the pixel position is represented by the emergence of the point cloud, and the output result is positive infinity. In these three cases, the pixel is an invalid pixel; The invalid value means that when calculating the phase, when the modulation value of the pixel value in the image is less than a preset value, the current phase pixel value is considered to be unreliable and an invalid point.
7. The geometric constraint-based stereo matching fast imaging method according to claim 1, characterized in that: The global depth range is 200-2000 mm.
