WO2021168971A1 - Double-fringe projection phase unwrapping method and apparatus based on color segmentation - Google Patents

Double-fringe projection phase unwrapping method and apparatus based on color segmentation Download PDF

Info

Publication number
WO2021168971A1
WO2021168971A1 PCT/CN2020/081649 CN2020081649W WO2021168971A1 WO 2021168971 A1 WO2021168971 A1 WO 2021168971A1 CN 2020081649 W CN2020081649 W CN 2020081649W WO 2021168971 A1 WO2021168971 A1 WO 2021168971A1
Authority
WO
WIPO (PCT)
Prior art keywords
color
fringe
deformed
phase
fringe pattern
Prior art date
Application number
PCT/CN2020/081649
Other languages
French (fr)
Chinese (zh)
Inventor
龙佳乐
张建民
陈富健
Original Assignee
五邑大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 五邑大学 filed Critical 五邑大学
Publication of WO2021168971A1 publication Critical patent/WO2021168971A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/24Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
    • G01B11/25Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures by projecting a pattern, e.g. one or more lines, moiré fringes on the object
    • G01B11/254Projection of a pattern, viewing through a pattern, e.g. moiré

Definitions

  • the invention relates to the technical field of three-dimensional shape measurement, in particular to a double fringe projection phase expansion method and device based on color segmentation.
  • Non-contact type has become a research hotspot due to its simplicity, simplicity, and high accuracy.
  • the three-dimensional measurement method based on fringe projection is widely used in various fields.
  • the three-dimensional measurement method based on fringe projection uses a projector to project one or several sets of fringe patterns onto the object to be measured, and then photograph the object to be measured with a camera The deformed fringe pattern on the above is analyzed through a series of algorithms, and the three-dimensional three-dimensional of the object to be measured is finally restored.
  • the existing fringe projection phase unwrapping method is mainly based on the principle of multi-frequency heterodyne, and its phase unwrapping process mainly relies on the main phase values of grating images at different frequencies.
  • the selected fringe needs to be a combination of low-frequency and high-frequency fringes, and the expansion of low-frequency fringes must have only one fringe period in the entire image, low-frequency fringes are greatly affected by noise.
  • the multi-fringe projection algorithm based on frequency selection improves the method based on the external frequency heterodyne principle.
  • This method establishes the special relationship between the wrap phase and the fringe order through analysis and can also correctly restore the absolute phase, and the fringe selection limits It is greatly reduced, but it cannot satisfy that the total pixels of the projected picture must be an integer multiple of the number of pixels contained in each stripe.
  • the multi-fringe projection algorithm based on wavelength selection is improved, and the multi-fringe projection algorithm based on frequency selection is improved, so that the fringe designed can make full use of all pixels of the projected image.
  • the double fringe projection phase expansion method based on wavelength selection requires that the parameters of wavelength selection must satisfy the resolution of the projector in a specific range, that is, the resolution of the projector must be less than the product of the selected wavelength, R ⁇ 1 ⁇ 2 . If it exceeds the limited resolution range, errors will occur during phase unwrapping, so the resolution of the projector is not fully utilized.
  • the purpose of the present invention is to solve at least one of the technical problems existing in the prior art, provide a double fringe projection phase unwrapping method and device based on color segmentation, and improve the measurement range and accuracy of the fringe projection phase unwrapping algorithm.
  • the present invention provides a double fringe projection phase unwrapping method based on color segmentation, including:
  • the projection fringe pattern which is composed of the color fringe pattern corresponding to the projector resolution and the projection fringe pattern design, and the color fringe pattern is composed of at least two color bars with different colors arranged alternately;
  • the three-dimensional shape of the object to be measured is recovered from the absolute phase of all the segmented fringe patterns.
  • the color fringe pattern corresponding to the resolution of the projector and the projection fringe pattern design the color fringe pattern consisting of at least two color bars with different colors arranged alternately includes:
  • the size of the color fringe pattern is the same as that of the projected fringe pattern
  • the color stripe diagram is designed by the design formula, the design formula is as follows:
  • r 1 R-(n-1)r 2 ,
  • the number of color bars is n
  • R is the resolution of the projector
  • the color area of the color bar at the bottom is r 1
  • the color area of the remaining color bars is r 2
  • Indicates rounding up ⁇ 1 and ⁇ 2 are the wavelengths of the projected fringes.
  • the step of dividing the deformed color image by color area at least twice to obtain the corresponding deformed monochrome area, and dividing the deformed fringe image into at least two segmented fringe images according to the position of the deformed monochrome area includes:
  • the number of divisions of the color area is the same as the number of color bars
  • the number of deformed monochrome areas is the same as the number of divisions of color areas
  • the number of divided fringe patterns is the same as the number of deformed monochrome areas.
  • the performing color area division on the deformed color image at least twice to obtain the corresponding deformed monochrome area includes:
  • calculating the color approximate value D(z, a) of each point z and point a of the deformed color map includes:
  • R, G, and B represent the RGB components of point z and point a, respectively.
  • the performing denoising processing on the unprocessed divided area includes:
  • recovering the absolute phase of the segmentation fringe image from the wrapped phase image and the look-up table includes:
  • the header of the established lookup table includes: m 1 , m 2 , m 2 ⁇ 2 -m 1 ⁇ 1 , where m 1 , m 2 are required to restore the three absolute phases.
  • ⁇ 1 , ⁇ 2 are the fringe wavelengths, m 1 , m 2 are the order of the fringes, Is the wrapped phase map, and R is the resolution of the projector;
  • ⁇ 1 and ⁇ 2 are the absolute phases to be restored.
  • the present invention provides a dual fringe projection phase unwrapping device based on color segmentation, including:
  • the initialization module is used to select two fringe wavelengths to design the projection fringe pattern, which is composed of the color fringe pattern corresponding to the projector resolution and the projection fringe pattern design, and the color fringe pattern is composed of at least two color bars with different colors alternately arranged;
  • the projection module is used to project the color fringe pattern onto the object to be measured to obtain a deformed color image, and project the projected fringe pattern onto the object to be measured to obtain the deformed fringe pattern;
  • the segmentation module is used to divide the deformed color image into at least two color areas and obtain the corresponding deformed monochrome area, and divide the deformed fringe image into at least two segmented fringe images according to the position of the deformed monochrome area;
  • the table building operation module is used to obtain the wrapped phase image for each segmentation fringe image and establish a lookup table for the corresponding area. According to the absolute phase calculation formula, the absolute phase of the segmentation fringe image is restored from the wrapped phase image and the lookup table;
  • the shape restoration module is used to restore the three-dimensional shape of the object to be measured from the absolute phase of all the segmented fringe patterns.
  • the present invention provides a dual fringe projection phase unwrapping device based on color segmentation
  • It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor to enable the at least one control processor.
  • the present invention provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to make the computer execute the above-mentioned color segmentation-based double fringe projection phase unwrapping .
  • the present invention also provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer , Let the computer perform the phase expansion of the double fringe projection based on color segmentation as described above.
  • the present invention provides a double fringe projection phase unwrapping method and device based on color segmentation, and the purpose is to improve the measurement range of the fringe projection phase unwrapping algorithm. And accuracy, so that it can project fringe patterns of any wavelength under any given projector resolution to accurately perform phase expansion, make full use of the projector's resolution, and improve the measurement of the fringe projection phase expansion algorithm. Range and accuracy.
  • FIG. 1 is a flowchart of a double fringe projection phase unwrapping method based on color segmentation according to a first embodiment of the present invention
  • step S100 in the double fringe projection phase unwrapping method based on color segmentation according to the first embodiment of the present invention
  • step S300 is a specific method flowchart of step S300 in the double fringe projection phase unwrapping method based on color segmentation according to the first embodiment of the present invention
  • step S330 is a specific method flowchart of step S330 in the double fringe projection phase expansion method based on color segmentation according to the first embodiment of the present invention
  • step S400 in the double fringe projection phase expansion method based on color segmentation according to the first embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a dual fringe projection phase unwrapping device based on color segmentation according to a second embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a double fringe projection phase unwrapping device based on color segmentation according to a third embodiment of the present invention.
  • 100-Double fringe projection phase unwrapping device based on color segmentation 110-initialization module, 120-projection module, 130-segmentation module, 140-table building operation module, 150-restoration module, 200-double fringe based on color segmentation Projection phase unwrapping equipment, 210-control processor, 220-memory.
  • the double fringe projection phase expansion method based on color segmentation includes:
  • S500 Restore the three-dimensional shape of the object to be measured from the absolute phases of all the segmented fringe patterns.
  • the invention improves the measurement range and accuracy based on the fringe projection phase unwrapping algorithm, so that it can project fringe patterns of any wavelength under any given projector resolution and can perform phase unwrapping accurately and without error, and make full use of the projector's Resolution improves the measurement range and accuracy of the fringe projection phase unwrapping algorithm.
  • step S100 includes:
  • the size of the color fringe pattern is the same as that of the projected fringe pattern
  • r 1 R-(n-1)r 2 ,
  • the number of color bars is n
  • R is the resolution of the projector
  • the color area of the color bar at the bottom is r 1
  • the color area of the remaining color bars is r 2
  • Indicates rounding up ⁇ 1 and ⁇ 2 are the wavelengths of the projected fringes.
  • the size of the color fringe pattern is the same as the projected fringe pattern; the color fringe pattern is designed by the projector resolution and the projection fringe pattern.
  • Step S300 includes:
  • the number of divisions of the color area is the same as the number of color bars
  • the number of deformed monochrome areas is the same as the number of divisions of color areas
  • the number of divided fringe patterns is the same as the number of deformed monochrome areas.
  • the number of color bars determines the number of divisions of the color area. Each time the color area is divided, a deformed monochrome area is obtained, and the number of divided fringe patterns is the same as the number of deformed monochrome areas.
  • performing at least two color area divisions on the deformed color image and obtaining the corresponding deformed monochrome area in step S300 includes:
  • a deformed monochrome area is obtained from the deformed color map; then the deformed monochrome area in the deformed color map is deleted to become a new deformed color map .
  • calculating the approximate color value D(z,a) of each point z and point a of the deformed color image in step S310 includes:
  • R, G, and B represent the RGB components of point z and point a, respectively.
  • performing denoising processing on the unprocessed divided area in step S330 includes:
  • S332 Filter out areas with smaller connected domains in the unprocessed divided areas.
  • the holes existing in the unprocessed divided areas are filled, and then the areas with smaller connected domains in the unprocessed divided areas are filtered out, and the areas with smaller connected domains are uniformly divided into the same deformed monochrome area.
  • step S400 includes:
  • the header of the established lookup table includes: m 1 , m 2 , m 2 ⁇ 2 -m 1 ⁇ 1 , where m 1 , m 2 are required to restore the three absolute phases.
  • Required fringe order
  • ⁇ 1 , ⁇ 2 are the fringe wavelengths, m 1 , m 2 are the order of the fringes, Is the wrapped phase map, and R is the resolution of the projector;
  • ⁇ 1 and ⁇ 2 are the absolute phases to be restored.
  • the specific steps are as follows:
  • the design consists of three color bars of red, green, and blue alternately arranged
  • the color fringe pattern is composed of: the color fringe pattern is projected into a deformed color map, and the projected fringe pattern is projected to obtain a deformed fringe map; the deformed color map is divided into three color areas to obtain three deformed monochrome areas, and then according to the deformed monochrome area The position of the deformed fringe image is divided into three corresponding segmentation fringe images;
  • the dual fringe projection phase expansion device 100 based on color segmentation includes but is not limited to: an initialization module 110, a projection module 120, a segmentation module 130, and a table building operation module 140 and restore topography module 150.
  • the initialization module 110 is used to design a projection fringe pattern by selecting a suitable fringe wavelength according to the resolution of the projector.
  • the corresponding color fringe pattern is designed from the projector resolution and the projection fringe pattern.
  • the color fringe pattern consists of at least two different colors. The color bars are arranged alternately;
  • the projection module 120 is used to project the color fringe pattern onto the object to be measured to obtain a deformed color image, and project the projected fringe pattern onto the object to be measured to obtain the deformed fringe pattern;
  • the segmentation module 130 is configured to perform at least two color area divisions on the deformed color image to obtain the corresponding deformed monochrome area, and divide the deformed fringe image into at least two segmented fringe images according to the position of the deformed monochrome area;
  • the table building operation module 140 is configured to obtain the wrapped phase image for each segmented fringe pattern and establish a lookup table for the corresponding region, and restore the absolute phase of the segmented fringe pattern from the wrapped phase image and the lookup table according to the absolute phase calculation formula;
  • the shape restoration module 150 is used to restore the three-dimensional shape of the object to be measured from the absolute phases of all the segmented fringe patterns.
  • the double fringe projection phase unwrapping device 200 based on color segmentation can be any type of smart terminal, such as a mobile phone. , Tablet computers, personal computers, etc.
  • the double fringe projection phase unwrapping device 200 based on color segmentation includes: one or more control processors 210 and a memory 220.
  • one control processor 210 is taken as an example.
  • control processor 210 and the memory 220 may be connected through a bus or in other ways. In FIG. 7, the connection through a bus is taken as an example.
  • the memory 220 can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as the double fringe projection phase expansion based on color segmentation in the embodiment of the present invention
  • the program instructions/modules corresponding to the method for example, the initialization module 110, the projection module 120, the segmentation module 130, the table creation calculation module 140, and the shape restoration module 150 shown in FIG. 6.
  • the control processor 210 executes various functional applications and data processing of the double fringe projection phase unwrapping device 100 based on color segmentation by running the non-transitory software programs, instructions, and modules stored in the memory 220, thereby realizing the foregoing method embodiments Phase unwrapping method of double fringe projection based on color segmentation.
  • the memory 220 may include a storage program area and a storage data area.
  • the storage program area can store an operating system and an application program required by at least one function; The created data, etc.
  • the memory 220 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices.
  • the memory 220 may optionally include memories remotely provided with respect to the control processor 210, and these remote memories may be connected to the color segmentation-based double fringe projection phase unwrapping device 200 via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
  • the one or more modules are stored in the memory 220, and when executed by the one or more control processors 210, the double fringe projection phase expansion method based on color segmentation in the foregoing method embodiment is executed, for example, Perform the above-described method steps S100 to S500 in FIG. 1, method steps S110 to S120 in FIG. 2, method steps S310 to S340 in FIG. 3, method steps S331 to S332 in FIG. 4, and method steps in FIG. 5 S410 to S430 realize the functions of the modules 110-150 in FIG. 6.
  • An embodiment of the present invention also provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are executed by one or more control processors 210, for example, as shown in FIG. 7
  • One of the control processors 210 is executed to enable the one or more control processors 210 to execute the double fringe projection phase unwrapping method based on color segmentation in the foregoing method embodiment, for example, to execute the method steps in FIG. 1 described above S100 to S500, method steps S110 to S120 in FIG. 2, method steps S310 to S340 in FIG. 3, method steps S331 to S332 in FIG. 4, method steps S410 to S430 in FIG. 5, implements module 110 in FIG. 6 -150 features.
  • the device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • each implementation manner can be implemented by means of software plus a general hardware platform.
  • All or part of the processes in the methods of the foregoing embodiments can be implemented by computer programs instructing relevant hardware.
  • the programs can be stored in a computer readable storage medium. At this time, it may include the flow of the embodiment of the above-mentioned method.
  • the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read Only Memory, ROM), or a random storage memory (Random AccesSS Memory, RAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

Disclosed in the present invention are a double-fringe projection phase unwrapping method and apparatus based on color segmentation. The method comprises: designing a projection fringe pattern and a color fringe pattern; projecting the color fringe pattern to obtain a deformed color pattern, and projecting the projection fringe pattern to obtain a deformed fringe pattern; performing color region division on the deformed color pattern to obtain corresponding deformed monochromatic regions, and segmenting the deformed fringe pattern into segmented fringe patterns according to the positions of the deformed monochromatic regions; and for each segmented fringe pattern, separately obtaining a wrapped phase map and establishing a lookup table of a corresponding region, and according to a calculation formula of an absolute phase, recovering the absolute phase of the segmented fringe pattern by means of the wrapped phase map and the lookup table, thereby recovering a three-dimensional topography of an object to be measured. According to the present invention, the measurement range and precision based on a fringe projection phase unwrapping algorithm are widened and improved, and thus, phase unwrapping can be accurately performed on the projection fringe pattern of any wavelength under any given projector resolution, and the projector resolution is fully utilized.

Description

基于颜色分割的双条纹投影相位展开方法及装置Double fringe projection phase expansion method and device based on color segmentation 技术领域Technical field
本发明涉及三维形貌测量技术领域,特别涉及基于颜色分割的双条纹投影相位展开方法及装置。The invention relates to the technical field of three-dimensional shape measurement, in particular to a double fringe projection phase expansion method and device based on color segmentation.
背景技术Background technique
三维测量方法主要分为接触式和非接触式两种,非接触式由于其方法简单、简捷、精度高等特点成为了研究的热点。而又以基于条纹投影的三维测量方法广泛应用于各种领域当中,基于条纹投影的三维测量方法是使用投影机投影一组或几组条纹图到待测物体上,然后通过相机拍摄待测物体上的变形条纹图,通过一系列的算法分析这些被调制后变形条纹图,最终恢复出待测物体的三维立体。Three-dimensional measurement methods are mainly divided into two types: contact type and non-contact type. Non-contact type has become a research hotspot due to its simplicity, simplicity, and high accuracy. And the three-dimensional measurement method based on fringe projection is widely used in various fields. The three-dimensional measurement method based on fringe projection uses a projector to project one or several sets of fringe patterns onto the object to be measured, and then photograph the object to be measured with a camera The deformed fringe pattern on the above is analyzed through a series of algorithms, and the three-dimensional three-dimensional of the object to be measured is finally restored.
现有的条纹投影相位展开方法主要是基于多频外差原理的,它的相位展开过程主要依靠不同频率光栅图像的相位主值。基于外频外差原理的方法由于选择的条纹需为低频和高频条纹相结合,并且低频条纹展开必须在整个图像中只有一个条纹周期,低频条纹受噪声影响较大。基于频率选择的多条纹投影算法改进了基于外频外差原理的方法,这种方法通过分析建立起包裹相位和条纹阶数之间的特殊关系也能正确地恢复绝对相位,并且条纹选择的限制大大减小,但其无法满足投影图片的总像素必须是每个条纹所含像素数的整数倍。基于波长选择的多条纹投影算法,改进了基于频率选择的多条纹投影算法,使其设计的条纹能够充分利用到投影图片的所有像素。The existing fringe projection phase unwrapping method is mainly based on the principle of multi-frequency heterodyne, and its phase unwrapping process mainly relies on the main phase values of grating images at different frequencies. In the method based on the principle of external frequency heterodyne, because the selected fringe needs to be a combination of low-frequency and high-frequency fringes, and the expansion of low-frequency fringes must have only one fringe period in the entire image, low-frequency fringes are greatly affected by noise. The multi-fringe projection algorithm based on frequency selection improves the method based on the external frequency heterodyne principle. This method establishes the special relationship between the wrap phase and the fringe order through analysis and can also correctly restore the absolute phase, and the fringe selection limits It is greatly reduced, but it cannot satisfy that the total pixels of the projected picture must be an integer multiple of the number of pixels contained in each stripe. The multi-fringe projection algorithm based on wavelength selection is improved, and the multi-fringe projection algorithm based on frequency selection is improved, so that the fringe designed can make full use of all pixels of the projected image.
基于波长选择的双条纹投影相位展开方法要求波长选择的参数都要满足投影机的分辨率在在特定的范围内,即要满足投影机的分辨率小于选定波长的乘积,R≤λ 1λ 2。如果超出限定的分辨率范围,在相位展开时就会出错,因此没有充分利用到投影机的分辨率。 The double fringe projection phase expansion method based on wavelength selection requires that the parameters of wavelength selection must satisfy the resolution of the projector in a specific range, that is, the resolution of the projector must be less than the product of the selected wavelength, R≤λ 1 λ 2 . If it exceeds the limited resolution range, errors will occur during phase unwrapping, so the resolution of the projector is not fully utilized.
发明内容Summary of the invention
本发明的目的在于至少解决现有技术中存在的技术问题之一,提供基于颜色分割的双条纹投影相位展开方法及装置,提高了条纹投影相位展开算法的测量范围和精度。The purpose of the present invention is to solve at least one of the technical problems existing in the prior art, provide a double fringe projection phase unwrapping method and device based on color segmentation, and improve the measurement range and accuracy of the fringe projection phase unwrapping algorithm.
本发明解决其技术问题的解决方案是:The solution to the technical problem of the present invention is:
第一方面,本发明提供了基于颜色分割的双条纹投影相位展开方法,包括:In the first aspect, the present invention provides a double fringe projection phase unwrapping method based on color segmentation, including:
选择两个条纹波长设计投影条纹图,由投影机分辨率和投影条纹图设计对应的彩色条纹图,彩色条纹图由至少两个颜色互不相同的颜色条相间排列组成;Choose two fringe wavelengths to design the projection fringe pattern, which is composed of the color fringe pattern corresponding to the projector resolution and the projection fringe pattern design, and the color fringe pattern is composed of at least two color bars with different colors arranged alternately;
将彩色条纹图投影到待测物体上,得到变形彩色图,将投影条纹图投影到待测物体上,得到变形条纹图;Project the color fringe pattern onto the object to be measured to obtain a deformed color image, and project the projected fringe pattern onto the object to be measured to obtain a deformed fringe pattern;
对变形彩色图进行至少两次颜色区域划分并得到对应的变形单色区域,根据变形单色区域的位置,将变形条纹图分割为至少两个分割条纹图;Perform at least two color area divisions on the deformed color image to obtain a corresponding deformed monochrome area, and divide the deformed fringe image into at least two segmented fringe images according to the position of the deformed monochrome area;
对于每个分割条纹图,分别获取包裹相位图并建立对应区域的查找表,根据绝对相位的计算公式,由包裹相位图和查找表恢复分割条纹图的绝对相位;For each segmented fringe image, obtain the wrapped phase image and establish a look-up table for the corresponding area, and restore the absolute phase of the segmented fringe image from the wrapped phase image and the look-up table according to the absolute phase calculation formula;
由所有分割条纹图的绝对相位恢复出待测物体的三维形貌。The three-dimensional shape of the object to be measured is recovered from the absolute phase of all the segmented fringe patterns.
进一步,所述由投影机分辨率和投影条纹图设计对应的彩色条纹图,彩色条纹图由至少两个颜色互不相同的颜色条相间排列组成包括:Further, the color fringe pattern corresponding to the resolution of the projector and the projection fringe pattern design, the color fringe pattern consisting of at least two color bars with different colors arranged alternately includes:
彩色条纹图与投影条纹图的大小一致;The size of the color fringe pattern is the same as that of the projected fringe pattern;
由设计公式设计彩色条纹图,设计公式如下:The color stripe diagram is designed by the design formula, the design formula is as follows:
r 2=λ 1λ 2r 21 λ 2 ,
Figure PCTCN2020081649-appb-000001
Figure PCTCN2020081649-appb-000001
r 1=R-(n-1)r 2r 1 =R-(n-1)r 2 ,
其中颜色条的条数为n条,R为投影机分辨率,位于最下方的颜色条的颜色区域范围为r 1,其余颜色条的颜色区域范围为r 2
Figure PCTCN2020081649-appb-000002
表示向上取整,λ 1和λ 2为投影条纹的波长。
The number of color bars is n, R is the resolution of the projector, the color area of the color bar at the bottom is r 1 , and the color area of the remaining color bars is r 2 ,
Figure PCTCN2020081649-appb-000002
Indicates rounding up, λ 1 and λ 2 are the wavelengths of the projected fringes.
进一步,所述对变形彩色图进行至少两次颜色区域划分并得到对应的变形单色区域,根据变形单色区域的位置,将变形条纹图分割为至少两个分割条纹图包括:Further, the step of dividing the deformed color image by color area at least twice to obtain the corresponding deformed monochrome area, and dividing the deformed fringe image into at least two segmented fringe images according to the position of the deformed monochrome area includes:
颜色区域划分的次数与颜色条的条数相同,变形单色区域的个数与颜色区域划分的次数相同,分割条纹图的个数与变形单色区域的个数相同。The number of divisions of the color area is the same as the number of color bars, the number of deformed monochrome areas is the same as the number of divisions of color areas, and the number of divided fringe patterns is the same as the number of deformed monochrome areas.
进一步,所述对变形彩色图进行至少两次颜色区域划分并得到对应的变形单色区域包括:Further, the performing color area division on the deformed color image at least twice to obtain the corresponding deformed monochrome area includes:
颜色区域划分的步骤:Steps to divide the color area:
设定颜色分割阈值δ,取变形彩色图中的任意一点a,求变形彩色图每一点z与点a的颜色近似值D(z,a),若D(z,a)≤δ,则点z与点a颜色相近;Set the color segmentation threshold δ, take any point a in the deformed color map, and find the approximate color D(z,a) of each point z and point a in the deformed color map. If D(z,a)≤δ, then point z Similar to the color of point a;
所有与点a颜色相近的点z组成得到未处理划分区域;All the points z whose colors are similar to the point a are composed to obtain an unprocessed divided area;
对未处理划分区域进行去噪处理,得到变形单色区域;Perform denoising processing on unprocessed divided areas to obtain deformed monochrome areas;
在变形彩色图中删除变形单色区域并取代原来的变形彩色图。Delete the deformed monochrome area in the deformed color map and replace the original deformed color map.
进一步,所述求变形彩色图每一点z与点a的颜色近似值D(z,a)包括:Further, calculating the color approximate value D(z, a) of each point z and point a of the deformed color map includes:
点z与点a的颜色近似值D(z,a)计算公式为:The calculation formula for the approximate color value D(z,a) of point z and point a is:
Figure PCTCN2020081649-appb-000003
其中下标R,G,B分别表示点z和点a的RGB分 量。
Figure PCTCN2020081649-appb-000003
The subscripts R, G, and B represent the RGB components of point z and point a, respectively.
进一步,所述对未处理划分区域进行去噪处理包括:Further, the performing denoising processing on the unprocessed divided area includes:
对未处理划分区域进行孔洞填充;Fill holes in untreated divided areas;
滤除未处理划分区域中连通域较小的区域。Filter out the areas with smaller connected domains in the unprocessed divided areas.
进一步,所述对于每个分割条纹图,分别获取包裹相位图并建立对应区域的查找表,根据绝对相位的计算公式,由包裹相位图和查找表恢复分割条纹图的绝对相位包括:Further, for each segmentation fringe pattern, separately acquiring the wrapped phase image and establishing a look-up table of the corresponding region, according to the absolute phase calculation formula, recovering the absolute phase of the segmentation fringe image from the wrapped phase image and the look-up table includes:
对于每个分割条纹图,通过条纹分析技术,获取对应的分布在-π到π之间包裹相位图
Figure PCTCN2020081649-appb-000004
然后通过求解不等式建立对应区域的查找表,建立的查找表的表头包括有:m 1、m 2、m 2λ 2-m 1λ 1,其中m 1,m 2为恢复三个绝对相位所需的条纹阶数,
For each segmented fringe image, through fringe analysis technology, obtain the corresponding phase image that is distributed between -π and π
Figure PCTCN2020081649-appb-000004
Then the lookup table of the corresponding area is established by solving the inequality. The header of the established lookup table includes: m 1 , m 2 , m 2 λ 2 -m 1 λ 1 , where m 1 , m 2 are required to restore the three absolute phases. Required fringe order,
所述不等式如下:The inequality is as follows:
Figure PCTCN2020081649-appb-000005
Figure PCTCN2020081649-appb-000005
0≤m 1<R/λ 1,0≤m 2<R/λ 20≤m 1 <R/λ 1 , 0≤m 2 <R/λ 2 ,
其中λ 1、λ 2为所述条纹波长,m 1、m 2为对所述条纹阶数,
Figure PCTCN2020081649-appb-000006
为所述包裹相位图,R为所述投影机的分辨率;
Where λ 1 , λ 2 are the fringe wavelengths, m 1 , m 2 are the order of the fringes,
Figure PCTCN2020081649-appb-000006
Is the wrapped phase map, and R is the resolution of the projector;
根据获取的包裹相位图和查找表建立包裹相位图和进行相位展开所需的条纹阶数之间一一对应的关系,计算
Figure PCTCN2020081649-appb-000007
的值,即[m 2λ 2-m 1λ 1]的值并四舍五入取整,在所对应的查找表中寻找数值与其最接近的一行,记录下同行的m 1,m 2值;
Establish a one-to-one correspondence between the package phase image and the fringe order required for phase unwrapping according to the obtained package phase image and look-up table, and calculate
Figure PCTCN2020081649-appb-000007
The value of [m 2 λ 2 -m 1 λ 1 ] is rounded to the nearest whole number, and the closest row is found in the corresponding lookup table, and the m 1 and m 2 values of the same line are recorded;
根据绝对相位的计算公式,将求得的
Figure PCTCN2020081649-appb-000008
值和已得到的m 1,m 2值代入上述公式进行相位展开,恢复分割条纹图的绝对相位,
According to the calculation formula of absolute phase,
Figure PCTCN2020081649-appb-000008
Value and the obtained m 1 , m 2 values are substituted into the above formula for phase expansion, and the absolute phase of the segmented fringe pattern is restored,
绝对相位的计算公式:Absolute phase calculation formula:
Figure PCTCN2020081649-appb-000009
Figure PCTCN2020081649-appb-000009
Figure PCTCN2020081649-appb-000010
Figure PCTCN2020081649-appb-000010
其中φ 1,φ 2为待恢复的绝对相位。 Among them, φ 1 and φ 2 are the absolute phases to be restored.
第二方面,本发明提供了基于颜色分割的双条纹投影相位展开装置,包括:In the second aspect, the present invention provides a dual fringe projection phase unwrapping device based on color segmentation, including:
初始化模块,用于选择两个条纹波长设计投影条纹图,由投影机分辨率和投影条纹图设计对应的彩色条纹图,彩色条纹图由至少两个颜色互不相同的颜色条相间排列组成;The initialization module is used to select two fringe wavelengths to design the projection fringe pattern, which is composed of the color fringe pattern corresponding to the projector resolution and the projection fringe pattern design, and the color fringe pattern is composed of at least two color bars with different colors alternately arranged;
投影模块,用于将彩色条纹图投影到待测物体上,得到变形彩色图,将投影条纹图投影到待测物体上,得到变形条纹图;The projection module is used to project the color fringe pattern onto the object to be measured to obtain a deformed color image, and project the projected fringe pattern onto the object to be measured to obtain the deformed fringe pattern;
分割模块,用于对变形彩色图进行至少两次颜色区域划分并得到对应的变形单色区域,根据变形单色区域的位 置,将变形条纹图分割为至少两个分割条纹图;The segmentation module is used to divide the deformed color image into at least two color areas and obtain the corresponding deformed monochrome area, and divide the deformed fringe image into at least two segmented fringe images according to the position of the deformed monochrome area;
建表运算模块,用于对于每个分割条纹图,分别获取包裹相位图并建立对应区域的查找表,根据绝对相位的计算公式,由包裹相位图和查找表恢复分割条纹图的绝对相位;The table building operation module is used to obtain the wrapped phase image for each segmentation fringe image and establish a lookup table for the corresponding area. According to the absolute phase calculation formula, the absolute phase of the segmentation fringe image is restored from the wrapped phase image and the lookup table;
恢复形貌模块,用于由所有分割条纹图的绝对相位恢复出待测物体的三维形貌。The shape restoration module is used to restore the three-dimensional shape of the object to be measured from the absolute phase of all the segmented fringe patterns.
第三方面,本发明提供了基于颜色分割的双条纹投影相位展开设备,In the third aspect, the present invention provides a dual fringe projection phase unwrapping device based on color segmentation,
包括至少一个控制处理器和用于与至少一个控制处理器通信连接的存储器;存储器存储有可被至少一个控制处理器执行的指令,指令被至少一个控制处理器执行,以使至少一个控制处理器能够执行如上所述的基于颜色分割的双条纹投影相位展开。It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor to enable the at least one control processor The double fringe projection phase expansion based on color segmentation as described above can be performed.
第四方面,本发明提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机可执行指令,计算机可执行指令用于使计算机执行如上所述的基于颜色分割的双条纹投影相位展开。In a fourth aspect, the present invention provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to make the computer execute the above-mentioned color segmentation-based double fringe projection phase unwrapping .
第五方面,本发明还提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使计算机执行如上所述的基于颜色分割的双条纹投影相位展开。In a fifth aspect, the present invention also provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer , Let the computer perform the phase expansion of the double fringe projection based on color segmentation as described above.
本发明实施例中提供的一个或多个技术方案,至少具有如下有益效果:本发明给出了基于颜色分割的双条纹投影相位展开方法及装置,目的是提高基于条纹投影相位展开算法的测量范围和精度,使其能够在任意给定的投影机分辨率下,投影任意波长的条纹图都能够准确无误地进行相位展开,充分利用到投影机的分辨率,提高了条纹投影相位展开算法的测量范围和精度。One or more technical solutions provided in the embodiments of the present invention have at least the following beneficial effects: The present invention provides a double fringe projection phase unwrapping method and device based on color segmentation, and the purpose is to improve the measurement range of the fringe projection phase unwrapping algorithm. And accuracy, so that it can project fringe patterns of any wavelength under any given projector resolution to accurately perform phase expansion, make full use of the projector's resolution, and improve the measurement of the fringe projection phase expansion algorithm. Range and accuracy.
附图说明Description of the drawings
下面结合附图和实施例对发明进一步地说明;The invention will be further described below in conjunction with the drawings and embodiments;
图1是本发明第一实施例提供的基于颜色分割的双条纹投影相位展开方法的流程图;FIG. 1 is a flowchart of a double fringe projection phase unwrapping method based on color segmentation according to a first embodiment of the present invention;
图2是本发明第一实施例提供的基于颜色分割的双条纹投影相位展开方法中步骤S100的具体方法流程图;2 is a specific method flowchart of step S100 in the double fringe projection phase unwrapping method based on color segmentation according to the first embodiment of the present invention;
图3是本发明第一实施例提供的基于颜色分割的双条纹投影相位展开方法中步骤S300的具体方法流程图;3 is a specific method flowchart of step S300 in the double fringe projection phase unwrapping method based on color segmentation according to the first embodiment of the present invention;
图4是本发明第一实施例提供的基于颜色分割的双条纹投影相位展开方法中步骤S330的具体方法流程图;4 is a specific method flowchart of step S330 in the double fringe projection phase expansion method based on color segmentation according to the first embodiment of the present invention;
图5是本发明第一实施例提供的基于颜色分割的双条纹投影相位展开方法中步骤S400的具体方法流程图;5 is a specific method flowchart of step S400 in the double fringe projection phase expansion method based on color segmentation according to the first embodiment of the present invention;
图6是本发明第二实施例提供的基于颜色分割的双条纹投影相位展开装置的结构示意图;6 is a schematic structural diagram of a dual fringe projection phase unwrapping device based on color segmentation according to a second embodiment of the present invention;
图7是本发明第三实施例提供的基于颜色分割的双条纹投影相位展开设备的结构示意图;7 is a schematic structural diagram of a double fringe projection phase unwrapping device based on color segmentation according to a third embodiment of the present invention;
100-基于颜色分割的双条纹投影相位展开装置、110-初始化模块、120-投影模块、130-分割模块、140-建表运 算模块、150-恢复形貌模块、200-基于颜色分割的双条纹投影相位展开设备、210-控制处理器、220-存储器。100-Double fringe projection phase unwrapping device based on color segmentation, 110-initialization module, 120-projection module, 130-segmentation module, 140-table building operation module, 150-restoration module, 200-double fringe based on color segmentation Projection phase unwrapping equipment, 210-control processor, 220-memory.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the following further describes the present invention in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not used to limit the present invention.
需要说明的是,如果不冲突,本发明实施例中的各个特征可以相互结合,均在本发明的保护范围之内。另外,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。It should be noted that if there is no conflict, the various features in the embodiments of the present invention can be combined with each other, and all fall within the protection scope of the present invention. In addition, although the functional modules are divided in the schematic diagram of the device, and the logical sequence is shown in the flowchart, in some cases, the module division in the device may be different from the module division in the device, or the sequence shown in the flowchart may be executed. Or the steps described.
在本发明的第一实施例中,如图1所示,基于颜色分割的双条纹投影相位展开方法,包括:In the first embodiment of the present invention, as shown in FIG. 1, the double fringe projection phase expansion method based on color segmentation includes:
S100、选择两个条纹波长设计投影条纹图,由投影机分辨率和投影条纹图设计对应的彩色条纹图,彩色条纹图由至少两个颜色互不相同的颜色条相间排列组成;S100. Select two fringe wavelengths to design the projection fringe pattern, which is composed of the projector resolution and the color fringe pattern corresponding to the projection fringe pattern design, and the color fringe pattern is composed of at least two color bars with different colors arranged alternately;
S200、将彩色条纹图投影到待测物体上,得到变形彩色图,将投影条纹图投影到待测物体上,得到变形条纹图;S200. Project the color fringe pattern onto the object to be measured to obtain a deformed color image, and project the projected fringe pattern onto the object to be measured to obtain the deformed fringe pattern;
S300、对变形彩色图进行至少两次颜色区域划分并得到对应的变形单色区域,根据变形单色区域的位置,将变形条纹图分割为至少两个分割条纹图;S300. Performing at least two color area divisions on the deformed color image to obtain a corresponding deformed monochrome area, and dividing the deformed fringe image into at least two segmented fringe images according to the position of the deformed monochrome area;
S400、对于每个分割条纹图,分别获取包裹相位图并建立对应区域的查找表,根据绝对相位的计算公式,由包裹相位图和查找表恢复分割条纹图的绝对相位;S400: For each segmentation fringe pattern, obtain the wrapped phase image separately and establish a lookup table for the corresponding area, and restore the absolute phase of the segmentation fringe image from the wrapped phase image and the lookup table according to the absolute phase calculation formula;
S500、由所有分割条纹图的绝对相位恢复出待测物体的三维形貌。S500: Restore the three-dimensional shape of the object to be measured from the absolute phases of all the segmented fringe patterns.
在上述实施例中,以投影机分辨率R=256为例,具体步骤如下:In the above embodiment, taking the projector resolution R=256 as an example, the specific steps are as follows:
选择条纹波长λ 1=8,λ 2=15设计投影条纹图,根据投影机分辨率和投影条纹图,设计由红、绿、蓝三种颜色条相间排列组成的彩色条纹图;将彩色条纹图投影得变形彩色图,将投影条纹图投影得到变形条纹图;对变形彩色图进行三次颜色区域划分,得到三个变形单色区域,然后根据变形单色区域的位置,将变形条纹图分割为对应的三个分割条纹图;对于每个分割条纹图,获取其对应的包裹相位图,并且建立其对应的查找表,利用对应的包裹相位图和查找表,根据绝对相位的计算公式,恢复每个分割条纹图的绝对相位;每个分割条纹图的绝对相位恢复出待测物体部分的三维形貌,由所有分割条纹图的绝对相位恢复出待测物体的三维形貌。本发明提高基于条纹投影相位展开算法的测量范围和精度,使其能够在任意给定的投影机分辨率下,投影任意波长的条纹图都能够准确无误地进行相位展开,充分利用到投影机的分辨率,提高了条纹投影相位展开算法的测量范围和精度。 Choose the fringe wavelength λ 1 =8, λ 2 =15 to design the projection fringe pattern. According to the resolution of the projector and the projection fringe pattern, design a color fringe pattern composed of red, green and blue stripes arranged alternately; change the color fringe pattern The deformed color map is projected, and the projected fringe map is projected to obtain the deformed fringe map; the deformed color map is divided into three color regions to obtain three deformed monochrome regions, and then the deformed fringe map is divided into corresponding ones according to the position of the deformed monochrome region The three segmentation fringe patterns; for each segmentation fringe pattern, obtain its corresponding wrapped phase image, and establish its corresponding look-up table, use the corresponding wrapped phase image and look-up table, according to the absolute phase calculation formula, restore each The absolute phase of the segmented fringe pattern; the absolute phase of each segmented fringe pattern restores the three-dimensional shape of the object to be measured, and the absolute phase of all the segmented fringe patterns restores the three-dimensional shape of the object to be measured. The invention improves the measurement range and accuracy based on the fringe projection phase unwrapping algorithm, so that it can project fringe patterns of any wavelength under any given projector resolution and can perform phase unwrapping accurately and without error, and make full use of the projector's Resolution improves the measurement range and accuracy of the fringe projection phase unwrapping algorithm.
如图2所示,步骤S100包括:As shown in Figure 2, step S100 includes:
S110、彩色条纹图与投影条纹图的大小一致;S110. The size of the color fringe pattern is the same as that of the projected fringe pattern;
S120、由设计公式设计彩色条纹图,设计公式如下:S120. Design the color stripe pattern by the design formula, the design formula is as follows:
r 2=λ 1λ 2r 21 λ 2 ,
Figure PCTCN2020081649-appb-000011
Figure PCTCN2020081649-appb-000011
r 1=R-(n-1)r 2r 1 =R-(n-1)r 2 ,
其中颜色条的条数为n条,R为投影机分辨率,位于最下方的颜色条的颜色区域范围为r 1,其余颜色条的颜色区域范围为r 2
Figure PCTCN2020081649-appb-000012
表示向上取整,λ 1和λ 2为投影条纹的波长。
The number of color bars is n, R is the resolution of the projector, the color area of the color bar at the bottom is r 1 , and the color area of the remaining color bars is r 2 ,
Figure PCTCN2020081649-appb-000012
Indicates rounding up, λ 1 and λ 2 are the wavelengths of the projected fringes.
在上述实施例中,以投影机分辨率R=256,投影条纹图的条纹波长λ 1=8,λ 2=15为例,具体步骤如下: In the above embodiment, taking the projector resolution R=256, the fringe wavelength of the projection fringe pattern λ 1 = 8, λ 2 = 15 as an example, the specific steps are as follows:
彩色条纹图的大小与投影条纹图一致;彩色条纹图由投影机分辨率和投影条纹图对应设计,其余颜色条的颜色区域范围为r 2=λ 1λ 2=8*15=120,彩色条纹图中颜色条的条数
Figure PCTCN2020081649-appb-000013
位于最下方的颜色条的颜色区域范围为r 1=R-(n-1)r 2=256-(3-1)*120=16。
The size of the color fringe pattern is the same as the projected fringe pattern; the color fringe pattern is designed by the projector resolution and the projection fringe pattern. The color area of the remaining color bars is r 2 =λ 1 λ 2 =8*15=120, color fringe The number of color bars in the figure
Figure PCTCN2020081649-appb-000013
The color range of the color bar at the bottom is r 1 =R-(n-1)r 2 =256-(3-1)*120=16.
步骤S300包括:Step S300 includes:
颜色区域划分的次数与颜色条的条数相同,变形单色区域的个数与颜色区域划分的次数相同,分割条纹图的个数与变形单色区域的个数相同。The number of divisions of the color area is the same as the number of color bars, the number of deformed monochrome areas is the same as the number of divisions of color areas, and the number of divided fringe patterns is the same as the number of deformed monochrome areas.
在上述实施例中,颜色条的条数决定颜色区域划分的次数,每次颜色区域划分得到一个变形单色区域,分割条纹图的个数与变形单色区域的个数相同。In the above embodiment, the number of color bars determines the number of divisions of the color area. Each time the color area is divided, a deformed monochrome area is obtained, and the number of divided fringe patterns is the same as the number of deformed monochrome areas.
如图3所示,步骤S300中所述对变形彩色图进行至少两次颜色区域划分并得到对应的变形单色区域包括:As shown in FIG. 3, performing at least two color area divisions on the deformed color image and obtaining the corresponding deformed monochrome area in step S300 includes:
颜色区域划分的步骤:Steps to divide the color area:
S310、设定颜色分割阈值δ,取变形彩色图中的任意一点a,求变形彩色图每一点z与点a的颜色近似值D(z,a),若D(z,a)≤δ,则点z与点a颜色相近;S310. Set the color segmentation threshold δ, take any point a in the deformed color map, and find the color approximate value D(z, a) of each point z and point a of the deformed color map. If D(z, a) ≤ δ, then The color of point z is similar to that of point a;
S320、所有与点a颜色相近的点z组成得到未处理划分区域;S320. All points z whose colors are similar to point a are formed to obtain an unprocessed divided area;
S330、对未处理划分区域进行去噪处理,得到变形单色区域;S330: Perform denoising processing on the unprocessed divided area to obtain a deformed monochromatic area;
S340、在变形彩色图中删除变形单色区域并取代原来的变形彩色图。S340. Delete the deformed monochrome area in the deformed color map and replace the original deformed color map.
在上述实施例中,根据颜色区域划分的步骤,每进行一次颜色区域划分,从变形彩色图中得到一个变形单色区域;然后删除变形彩色图中的变形单色区域,成为新的变形彩色图。In the above embodiment, according to the steps of dividing the color area, each time the color area is divided, a deformed monochrome area is obtained from the deformed color map; then the deformed monochrome area in the deformed color map is deleted to become a new deformed color map .
如图3所示,步骤S310中所述求变形彩色图每一点z与点a的颜色近似值D(z,a)包括:As shown in FIG. 3, calculating the approximate color value D(z,a) of each point z and point a of the deformed color image in step S310 includes:
点z与点a的颜色近似值D(z,a)计算公式为:The calculation formula for the approximate color value D(z,a) of point z and point a is:
Figure PCTCN2020081649-appb-000014
其中下标R,G,B分别表示点z和点a的RGB分量。
Figure PCTCN2020081649-appb-000014
The subscripts R, G, and B represent the RGB components of point z and point a, respectively.
在上述实施例中,给出点z与点a的颜色近似值的计算公式,可以进行相关的运算。In the above-mentioned embodiment, the calculation formula for the approximate value of the color of the point z and the point a is given, and related operations can be performed.
如图4所示,步骤S330中所述对未处理划分区域进行去噪处理包括:As shown in FIG. 4, performing denoising processing on the unprocessed divided area in step S330 includes:
S331、对未处理划分区域进行孔洞填充;S331. Filling holes in the untreated divided area;
S332、滤除未处理划分区域中连通域较小的区域。S332: Filter out areas with smaller connected domains in the unprocessed divided areas.
在上述实施例中,将未处理划分区域中存在的孔洞进行填充,然后滤除未处理划分区域中连通域较小的区域,连通域较小的区域统一划分于同一个变形单色区域。In the foregoing embodiment, the holes existing in the unprocessed divided areas are filled, and then the areas with smaller connected domains in the unprocessed divided areas are filtered out, and the areas with smaller connected domains are uniformly divided into the same deformed monochrome area.
如图5所示,步骤S400包括:As shown in Fig. 5, step S400 includes:
S410、对于每个分割条纹图,通过条纹分析技术,获取对应的分布在-π到π之间包裹相位图
Figure PCTCN2020081649-appb-000015
然后通过求解不等式建立对应区域的查找表,建立的查找表的表头包括有:m 1、m 2、m 2λ 2-m 1λ 1,其中m 1,m 2为恢复三个绝对相位所需的条纹阶数,
S410. For each segmented fringe image, obtain the corresponding phase image that is distributed between -π and π through fringe analysis technology
Figure PCTCN2020081649-appb-000015
Then the lookup table of the corresponding area is established by solving the inequality. The header of the established lookup table includes: m 1 , m 2 , m 2 λ 2 -m 1 λ 1 , where m 1 , m 2 are required to restore the three absolute phases. Required fringe order,
所述不等式如下:The inequality is as follows:
Figure PCTCN2020081649-appb-000016
Figure PCTCN2020081649-appb-000016
0≤m 1<R/λ 1,0≤m 2<R/λ 20≤m 1 <R/λ 1 , 0≤m 2 <R/λ 2 ,
其中λ 1、λ 2为所述条纹波长,m 1、m 2为对所述条纹阶数,
Figure PCTCN2020081649-appb-000017
为所述包裹相位图,R为所述投影机的分辨率;
Where λ 1 , λ 2 are the fringe wavelengths, m 1 , m 2 are the order of the fringes,
Figure PCTCN2020081649-appb-000017
Is the wrapped phase map, and R is the resolution of the projector;
S420、根据获取的包裹相位图和查找表建立包裹相位图和进行相位展开所需的条纹阶数之间一一对应的关系,计算
Figure PCTCN2020081649-appb-000018
的值,即[m 2λ 2-m 1λ 1]的值并四舍五入取整,在所对应的查找表中寻找数值与其最接近的一行,记录下同行的m 1,m 2值;
S420. Establish a one-to-one correspondence between the wrapped phase image and the fringe order required for phase unwrapping according to the obtained wrapped phase image and the look-up table, and calculate
Figure PCTCN2020081649-appb-000018
The value of [m 2 λ 2 -m 1 λ 1 ] is rounded to the nearest whole number, and the closest row is found in the corresponding lookup table, and the m 1 and m 2 values of the same line are recorded;
S430、根据绝对相位的计算公式,将求得的
Figure PCTCN2020081649-appb-000019
值和已得到的m 1,m 2值代入上述公式进行相位展开,恢复分割条纹图的绝对相位,
S430. According to the calculation formula of absolute phase,
Figure PCTCN2020081649-appb-000019
Value and the obtained m 1 , m 2 values are substituted into the above formula for phase expansion, and the absolute phase of the segmented fringe pattern is restored,
绝对相位的计算公式:Absolute phase calculation formula:
Figure PCTCN2020081649-appb-000020
Figure PCTCN2020081649-appb-000020
Figure PCTCN2020081649-appb-000021
Figure PCTCN2020081649-appb-000021
其中φ 1,φ 2为待恢复的绝对相位。 Among them, φ 1 and φ 2 are the absolute phases to be restored.
在上述实施例中,以投影机分辨率R=256,投影条纹图的条纹波长λ 1=8,λ 2=15为例,具体步骤如下:设计由红、绿、蓝三种颜色条相间排列组成的彩色条纹图;将彩色条纹图投影得变形彩色图,将投影条纹图投影得到变形条纹图;对变形彩色图进行三次颜色区域划分,得到三个变形单色区域,然后根据变形单色区域的位置,将变形条纹图分割为对应的三个分割条纹图; In the above embodiment, taking the projector resolution R=256, the fringe wavelength of the projected fringe pattern λ 1 = 8, λ 2 = 15 as an example, the specific steps are as follows: The design consists of three color bars of red, green, and blue alternately arranged The color fringe pattern is composed of: the color fringe pattern is projected into a deformed color map, and the projected fringe pattern is projected to obtain a deformed fringe map; the deformed color map is divided into three color areas to obtain three deformed monochrome areas, and then according to the deformed monochrome area The position of the deformed fringe image is divided into three corresponding segmentation fringe images;
从第一个分割条纹图中获取分布在-π到π之间包裹相位图
Figure PCTCN2020081649-appb-000022
并通过不等式建立查找表的第一区域如下所示:
Obtain the wrapped phase image from -π to π from the first segmented fringe image
Figure PCTCN2020081649-appb-000022
And the first area of the lookup table established by inequality is as follows:
m 1(y) m 1 (y) m 2(y) m 2 (y) m 2(y)λ 2-m 1(y)λ 1 m 2 (y)λ 2 -m 1 (y)λ 1
00 00 00
11 00 -8-8
11 11 77
22 11 -1-1
33 11 -9-9
33 22 66
44 22 -2-2
55 22 -10-10
55 33 55
66 33 -3-3
77 33 -11-11
77 44 44
88 44 -4-4
99 44 -12-12
99 55 33
1010 55 -5-5
1111 55 -13-13
1111 66 22
1212 66 -6-6
1313 66 -14-14
1313 77 11
1414 77 -7-7
从第二个分割条纹图中获取分布在-π到π之间包裹相位图
Figure PCTCN2020081649-appb-000023
并通过不等式建立查找表的第二区域如下所示:
Obtain the phase image wrapped between -π and π from the second segmented fringe image
Figure PCTCN2020081649-appb-000023
And the second area of the lookup table established by inequality is as follows:
m 1(y) m 1 (y) m 2(y) m 2 (y) m 2(y)λ 2-m 1(y)λ 1 m 2 (y)λ 2 -m 1 (y)λ 1
1515 88 00
1616 88 -8-8
1616 99 77
1717 99 -1-1
1818 99 -9-9
1818 1010 66
1919 1010 -2-2
2020 1010 -10-10
2020 1111 55
21twenty one 1111 -3-3
22twenty two 1111 -11-11
22twenty two 1212 44
23twenty three 1212 -4-4
24twenty four 1212 -12-12
24twenty four 1313 33
2525 1313 -5-5
2626 1313 -13-13
2626 1414 22
2727 1414 -6-6
2828 1414 -14-14
2828 1515 11
2929 1515 -7-7
从第三个分割条纹图中获取分布在-π到π之间包裹相位图
Figure PCTCN2020081649-appb-000024
并通过不等式建立查找表的第三区域如下所示:
Obtain the wrapped phase image from -π to π from the third segmented fringe image
Figure PCTCN2020081649-appb-000024
And the third area of the lookup table established by inequality is as follows:
m 1(y) m 1 (y) m 2(y) m 2 (y) m 2(y)λ 2-m 1(y)λ 1 m 2 (y)λ 2 -m 1 (y)λ 1
3030 1616 00
3131 1616 -8-8
3131 1717 77
3232 1717 -1-1
3333 1717 -9-9
对于每个分割条纹图,计算
Figure PCTCN2020081649-appb-000025
的值,即[m 2λ 2-m 1λ 1]的值并四舍五入取整,在查找表的对应区域中寻找数值与其最接近的一行,记录下同行的m 1,m 2值;根据绝对相位的计算公式,将求得的
Figure PCTCN2020081649-appb-000026
值和已得到的m 1,m 2值代入上述公式进行相位展开,恢复分割条纹图的绝对相位。
For each segmented fringe pattern, calculate
Figure PCTCN2020081649-appb-000025
The value of [m 2 λ 2 -m 1 λ 1 ] is rounded to the nearest whole number, and the row closest to the value is found in the corresponding area of the lookup table, and the m 1 and m 2 values of the same line are recorded; according to the absolute The calculation formula of the phase will be obtained
Figure PCTCN2020081649-appb-000026
Values and the obtained m 1 and m 2 values are substituted into the above formula for phase expansion, and the absolute phase of the segmented fringe pattern is restored.
在本发明的第二实施例中,如图6所示,基于颜色分割的双条纹投影相位展开装置100中,包括但不限于:初始化模块110、投影模块120、分割模块130、建表运算模块140和恢复形貌模块150。In the second embodiment of the present invention, as shown in FIG. 6, the dual fringe projection phase expansion device 100 based on color segmentation includes but is not limited to: an initialization module 110, a projection module 120, a segmentation module 130, and a table building operation module 140 and restore topography module 150.
其中,初始化模块110用于根据投影机分辨率选择合适的条纹波长设计投影条纹图,由投影机分辨率和投影条纹图设计对应的彩色条纹图,彩色条纹图由至少两个颜色互不相同的颜色条相间排列组成;Wherein, the initialization module 110 is used to design a projection fringe pattern by selecting a suitable fringe wavelength according to the resolution of the projector. The corresponding color fringe pattern is designed from the projector resolution and the projection fringe pattern. The color fringe pattern consists of at least two different colors. The color bars are arranged alternately;
投影模块120用于将彩色条纹图投影到待测物体上,得到变形彩色图,将投影条纹图投影到待测物体上,得到变形条纹图;The projection module 120 is used to project the color fringe pattern onto the object to be measured to obtain a deformed color image, and project the projected fringe pattern onto the object to be measured to obtain the deformed fringe pattern;
分割模块130用于对变形彩色图进行至少两次颜色区域划分并得到对应的变形单色区域,根据变形单色区域的位置,将变形条纹图分割为至少两个分割条纹图;The segmentation module 130 is configured to perform at least two color area divisions on the deformed color image to obtain the corresponding deformed monochrome area, and divide the deformed fringe image into at least two segmented fringe images according to the position of the deformed monochrome area;
建表运算模块140用于对于每个分割条纹图,分别获取包裹相位图并建立对应区域的查找表,根据绝对相位的计算公式,由包裹相位图和查找表恢复分割条纹图的绝对相位;The table building operation module 140 is configured to obtain the wrapped phase image for each segmented fringe pattern and establish a lookup table for the corresponding region, and restore the absolute phase of the segmented fringe pattern from the wrapped phase image and the lookup table according to the absolute phase calculation formula;
恢复形貌模块150用于由所有分割条纹图的绝对相位恢复出待测物体的三维形貌。The shape restoration module 150 is used to restore the three-dimensional shape of the object to be measured from the absolute phases of all the segmented fringe patterns.
需要说明的是,由于本实施例中的基于颜色分割的双条纹投影相位展开装置100与上述的基于颜色分割的双条纹投影相位展开方法基于相同的发明构思,因此,方法实施例中的相应内容同样适用于本装置实施例,此处不再详述。It should be noted that, since the double fringe projection phase expansion device 100 based on color segmentation in this embodiment and the above-mentioned double fringe projection phase expansion method based on color segmentation are based on the same inventive concept, the corresponding content in the method embodiment The same applies to the embodiments of the device, and will not be described in detail here.
在本发明的第三实施例中,如图7所示,基于颜色分割的双条纹投影相位展开设备200,该基于颜色分割的双条纹投影相位展开设备200可以是任意类型的智能终端,例如手机、平板电脑、个人计算机等。In the third embodiment of the present invention, as shown in FIG. 7, the double fringe projection phase unwrapping device 200 based on color segmentation can be any type of smart terminal, such as a mobile phone. , Tablet computers, personal computers, etc.
具体地,该基于颜色分割的双条纹投影相位展开设备200包括:一个或多个控制处理器210和存储器220,图7中以一个控制处理器210为例。Specifically, the double fringe projection phase unwrapping device 200 based on color segmentation includes: one or more control processors 210 and a memory 220. In FIG. 7, one control processor 210 is taken as an example.
控制处理器210和存储器220可以通过总线或者其他方式连接,图7中以通过总线连接为例。The control processor 210 and the memory 220 may be connected through a bus or in other ways. In FIG. 7, the connection through a bus is taken as an example.
存储器220作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态性计算机可执行程序以及模块,如本发明实施例中的基于颜色分割的双条纹投影相位展开方法对应的程序指令/模块,例如,图6所示的初始化模块110、投影模块120、分割模块130、建表运算模块140和恢复形貌模块150。控制处理器210通过运行 存储在存储器220中的非暂态软件程序、指令以及模块,从而执行基于颜色分割的双条纹投影相位展开装置100的各种功能应用以及数据处理,即实现上述方法实施例的基于颜色分割的双条纹投影相位展开方法。As a non-transitory computer-readable storage medium, the memory 220 can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as the double fringe projection phase expansion based on color segmentation in the embodiment of the present invention The program instructions/modules corresponding to the method, for example, the initialization module 110, the projection module 120, the segmentation module 130, the table creation calculation module 140, and the shape restoration module 150 shown in FIG. 6. The control processor 210 executes various functional applications and data processing of the double fringe projection phase unwrapping device 100 based on color segmentation by running the non-transitory software programs, instructions, and modules stored in the memory 220, thereby realizing the foregoing method embodiments Phase unwrapping method of double fringe projection based on color segmentation.
存储器220可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据基于颜色分割的双条纹投影相位展开装置100的使用所创建的数据等。此外,存储器220可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器220可选包括相对于控制处理器210远程设置的存储器,这些远程存储器可以通过网络连接至该基于颜色分割的双条纹投影相位展开设备200。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 220 may include a storage program area and a storage data area. The storage program area can store an operating system and an application program required by at least one function; The created data, etc. In addition, the memory 220 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory 220 may optionally include memories remotely provided with respect to the control processor 210, and these remote memories may be connected to the color segmentation-based double fringe projection phase unwrapping device 200 via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
所述一个或者多个模块存储在所述存储器220中,当被所述一个或者多个控制处理器210执行时,执行上述方法实施例中的基于颜色分割的双条纹投影相位展开方法,例如,执行以上描述的图1中的方法步骤S100至S500,图2中的方法步骤S110至S120,图3中的方法步骤S310至S340,图4中的方法步骤S331至S332,图5中的方法步骤S410至S430,实现图6的模块110-150的功能。The one or more modules are stored in the memory 220, and when executed by the one or more control processors 210, the double fringe projection phase expansion method based on color segmentation in the foregoing method embodiment is executed, for example, Perform the above-described method steps S100 to S500 in FIG. 1, method steps S110 to S120 in FIG. 2, method steps S310 to S340 in FIG. 3, method steps S331 to S332 in FIG. 4, and method steps in FIG. 5 S410 to S430 realize the functions of the modules 110-150 in FIG. 6.
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个控制处理器210执行,例如,被图7中的一个控制处理器210执行,可使得上述一个或多个控制处理器210执行上述方法实施例中的基于颜色分割的双条纹投影相位展开方法,例如,执行以上描述的图1中的方法步骤S100至S500,图2中的方法步骤S110至S120,图3中的方法步骤S310至S340,图4中的方法步骤S331至S332,图5中的方法步骤S410至S430,实现图6的模块110-150的功能。An embodiment of the present invention also provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are executed by one or more control processors 210, for example, as shown in FIG. 7 One of the control processors 210 is executed to enable the one or more control processors 210 to execute the double fringe projection phase unwrapping method based on color segmentation in the foregoing method embodiment, for example, to execute the method steps in FIG. 1 described above S100 to S500, method steps S110 to S120 in FIG. 2, method steps S310 to S340 in FIG. 3, method steps S331 to S332 in FIG. 4, method steps S410 to S430 in FIG. 5, implements module 110 in FIG. 6 -150 features.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
通过以上的实施方式的描述,本领域技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现。本领域技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(ReadOnly Memory,ROM)或随机存储记忆体(Random AcceSS Memory,RAM)等。Through the description of the above implementation manners, those skilled in the art can clearly understand that each implementation manner can be implemented by means of software plus a general hardware platform. Those skilled in the art can understand that all or part of the processes in the methods of the foregoing embodiments can be implemented by computer programs instructing relevant hardware. The programs can be stored in a computer readable storage medium. At this time, it may include the flow of the embodiment of the above-mentioned method. Wherein, the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read Only Memory, ROM), or a random storage memory (Random AccesSS Memory, RAM), etc.
以上是对本发明的较佳实施进行了具体说明,但本发明并不局限于上述实施方式,熟悉本领域的技术人员在不违背本发明精神的前提下还可作出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a detailed description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. Equivalent modifications or replacements are all included in the scope defined by the claims of this application.

Claims (10)

  1. 基于颜色分割的双条纹投影相位展开方法,其特征在于,包括:The double fringe projection phase expansion method based on color segmentation is characterized in that it includes:
    选择两个条纹波长设计投影条纹图,由投影机分辨率和投影条纹图设计对应的彩色条纹图,彩色条纹图由至少两个颜色互不相同的颜色条相间排列组成;Choose two fringe wavelengths to design the projection fringe pattern, which is composed of the color fringe pattern corresponding to the projector resolution and the projection fringe pattern design, and the color fringe pattern is composed of at least two color bars with different colors arranged alternately;
    将彩色条纹图投影到待测物体上,得到变形彩色图,将投影条纹图投影到待测物体上,得到变形条纹图;Project the color fringe pattern onto the object to be measured to obtain a deformed color image, and project the projected fringe pattern onto the object to be measured to obtain a deformed fringe pattern;
    对变形彩色图进行至少两次颜色区域划分并得到对应的变形单色区域,根据变形单色区域的位置,将变形条纹图分割为至少两个分割条纹图;Perform at least two color area divisions on the deformed color image to obtain a corresponding deformed monochrome area, and divide the deformed fringe image into at least two segmented fringe images according to the position of the deformed monochrome area;
    对于每个分割条纹图,分别获取包裹相位图并建立对应区域的查找表,根据绝对相位的计算公式,由包裹相位图和查找表恢复分割条纹图的绝对相位;For each segmented fringe image, obtain the wrapped phase image and establish a look-up table for the corresponding area, and restore the absolute phase of the segmented fringe image from the wrapped phase image and the look-up table according to the absolute phase calculation formula;
    由所有分割条纹图的绝对相位恢复出待测物体的三维形貌。The three-dimensional shape of the object to be measured is recovered from the absolute phase of all the segmented fringe patterns.
  2. 如权利要求1所述的基于颜色分割的双条纹投影相位展开方法,其特征在于,所述由投影机分辨率和投影条纹图设计对应的彩色条纹图,彩色条纹图由至少两个颜色互不相同的颜色条相间排列组成包括:The double fringe projection phase expansion method based on color segmentation according to claim 1, wherein the corresponding color fringe pattern is designed by the projector resolution and the projection fringe pattern, and the color fringe pattern consists of at least two colors that are different from each other. The composition of the same color bars arranged alternately includes:
    彩色条纹图与投影条纹图的大小一致;The size of the color fringe pattern is the same as that of the projected fringe pattern;
    由设计公式设计彩色条纹图,设计公式如下:The color stripe diagram is designed by the design formula, the design formula is as follows:
    r 2=λ 1λ 2r 21 λ 2 ,
    Figure PCTCN2020081649-appb-100001
    Figure PCTCN2020081649-appb-100001
    r 1=R-(n-1)r 2r 1 =R-(n-1)r 2 ,
    其中颜色条的条数为n条,R为投影机分辨率,位于最下方的颜色条的颜色区域范围为r 1,其余颜色条的颜色区域范围为r 2
    Figure PCTCN2020081649-appb-100002
    表示向上取整,λ 1和λ 2为投影条纹的波长。
    The number of color bars is n, R is the resolution of the projector, the color area of the color bar at the bottom is r 1 , and the color area of the remaining color bars is r 2 ,
    Figure PCTCN2020081649-appb-100002
    Indicates rounding up, λ 1 and λ 2 are the wavelengths of the projected fringes.
  3. 如权利要求2所述的基于颜色分割的双条纹投影相位展开方法,其特征在于,所述对变形彩色图进行至少两次颜色区域划分并得到对应的变形单色区域,根据变形单色区域的位置,将变形条纹图分割为至少两个分割条纹图包括:The double fringe projection phase expansion method based on color segmentation according to claim 2, characterized in that, the deformed color image is divided into at least two color regions to obtain the corresponding deformed monochromatic region, and the deformed monochromatic region is Location, the deformed fringe pattern is divided into at least two divided fringe patterns including:
    颜色区域划分的次数与颜色条的条数相同,变形单色区域的个数与颜色区域划分的次数相同,分割条纹图的个数与变形单色区域的个数相同。The number of divisions of the color area is the same as the number of color bars, the number of deformed monochrome areas is the same as the number of divisions of color areas, and the number of divided fringe patterns is the same as the number of deformed monochrome areas.
  4. 如权利要求1所述的基于颜色分割的双条纹投影相位展开方法,其特征在于,所述对变形彩色图进行至少两次颜色区域划分并得到对应的变形单色区域包括:5. The double fringe projection phase expansion method based on color segmentation according to claim 1, wherein said performing at least two color area divisions on the deformed color image to obtain the corresponding deformed monochrome area comprises:
    颜色区域划分的步骤:Steps to divide the color area:
    设定颜色分割阈值δ,取变形彩色图中的任意一点a,求变形彩色图每一点z与点a的颜色近似值D(z,a),若 D(z,a)≤δ,则点z与点a颜色相近;Set the color segmentation threshold δ, take any point a in the deformed color map, and find the approximate color D(z,a) of each point z and point a in the deformed color map. If D(z,a)≤δ, then point z Similar to the color of point a;
    所有与点a颜色相近的点z组成得到未处理划分区域;All the points z whose colors are similar to the point a are composed to obtain an unprocessed divided area;
    对未处理划分区域进行去噪处理,得到变形单色区域;Perform denoising processing on unprocessed divided areas to obtain deformed monochrome areas;
    在变形彩色图中删除变形单色区域并取代原来的变形彩色图。Delete the deformed monochrome area in the deformed color map and replace the original deformed color map.
  5. 如权利要求4所述的基于颜色分割的双条纹投影相位展开方法,其特征在于,所述求变形彩色图每一点z与点a的颜色近似值D(z,a)包括:The double fringe projection phase expansion method based on color segmentation according to claim 4, wherein said calculating the color approximate value D(z, a) of each point z and point a of the deformed color image comprises:
    点z与点a的颜色近似值D(z,a)计算公式为:The calculation formula for the approximate color value D(z,a) of point z and point a is:
    Figure PCTCN2020081649-appb-100003
    其中下标R,G,B分别表示点z和点a的RGB分量。
    Figure PCTCN2020081649-appb-100003
    The subscripts R, G, and B represent the RGB components of point z and point a, respectively.
  6. 如权利要求4所述的基于颜色分割的双条纹投影相位展开方法,其特征在于,所述对未处理划分区域进行去噪处理包括:The double fringe projection phase expansion method based on color segmentation according to claim 4, wherein the denoising processing on the unprocessed divided area comprises:
    对未处理划分区域进行孔洞填充;Fill holes in untreated divided areas;
    滤除未处理划分区域中连通域较小的区域。Filter out the areas with smaller connected domains in the unprocessed divided areas.
  7. 如权利要求1所述的基于颜色分割的双条纹投影相位展开方法,其特征在于,所述对于每个分割条纹图,分别获取包裹相位图并建立对应区域的查找表,根据绝对相位的计算公式,由包裹相位图和查找表恢复分割条纹图的绝对相位包括:The double fringe projection phase expansion method based on color segmentation according to claim 1, characterized in that, for each segmented fringe pattern, the wrapped phase image is obtained separately and the lookup table of the corresponding area is established, according to the absolute phase calculation formula , The absolute phase of the segmented fringe pattern recovered from the wrapped phase image and the look-up table includes:
    对于每个分割条纹图,通过条纹分析技术,获取对应的分布在-π到π之间包裹相位图
    Figure PCTCN2020081649-appb-100004
    然后通过求解不等式建立对应区域的查找表,建立的查找表的表头包括有:m 1、m 2、m 2λ 2-m 1λ 1,其中m 1,m 2为恢复三个绝对相位所需的条纹阶数,
    For each segmented fringe image, through fringe analysis technology, obtain the corresponding phase image that is distributed between -π and π
    Figure PCTCN2020081649-appb-100004
    Then the lookup table of the corresponding area is established by solving the inequality. The header of the established lookup table includes: m 1 , m 2 , m 2 λ 2 -m 1 λ 1 , where m 1 , m 2 are required to restore the three absolute phases. Required fringe order,
    所述不等式如下:The inequality is as follows:
    Figure PCTCN2020081649-appb-100005
    Figure PCTCN2020081649-appb-100005
    0≤m 1<R/λ 1,0≤m 2<R/λ 20≤m 1 <R/λ 1 , 0≤m 2 <R/λ 2 ,
    其中λ 1、λ 2为所述条纹波长,m 1、m 2为对所述条纹阶数,
    Figure PCTCN2020081649-appb-100006
    为所述包裹相位图,R为所述投影机的分辨率;
    Where λ 1 , λ 2 are the fringe wavelengths, m 1 , m 2 are the order of the fringes,
    Figure PCTCN2020081649-appb-100006
    Is the wrapped phase map, and R is the resolution of the projector;
    根据获取的包裹相位图和查找表建立包裹相位图和进行相位展开所需的条纹阶数之间一一对应的关系,计算
    Figure PCTCN2020081649-appb-100007
    的值,即[m 2λ 2-m 1λ 1]的值并四舍五入取整,在所对应的查找表中寻找数值与其最接近的一行,记录下同行的m 1,m 2值;
    Establish a one-to-one correspondence between the package phase image and the fringe order required for phase unwrapping according to the obtained package phase image and look-up table, and calculate
    Figure PCTCN2020081649-appb-100007
    The value of [m 2 λ 2 -m 1 λ 1 ] is rounded to the nearest whole number, and the closest row is found in the corresponding lookup table, and the m 1 and m 2 values of the same line are recorded;
    根据绝对相位的计算公式,将求得的
    Figure PCTCN2020081649-appb-100008
    值和已得到的m 1,m 2值代入上述公式进行相位展开,恢复分割条纹图的绝对相位,
    According to the calculation formula of absolute phase,
    Figure PCTCN2020081649-appb-100008
    Value and the obtained m 1 , m 2 values are substituted into the above formula for phase expansion, and the absolute phase of the segmented fringe pattern is restored,
    绝对相位的计算公式:Absolute phase calculation formula:
    Figure PCTCN2020081649-appb-100009
    Figure PCTCN2020081649-appb-100009
    Figure PCTCN2020081649-appb-100010
    Figure PCTCN2020081649-appb-100010
    其中φ 1,φ 2为待恢复的绝对相位。 Among them, φ 1 and φ 2 are the absolute phases to be restored.
  8. 基于颜色分割的双条纹投影相位展开装置,其特征在于,包括:The dual fringe projection phase unwrapping device based on color segmentation is characterized in that it comprises:
    初始化模块,用于选择两个条纹波长设计投影条纹图,由投影机分辨率和投影条纹图设计对应的彩色条纹图,彩色条纹图由至少两个颜色互不相同的颜色条相间排列组成;The initialization module is used to select two fringe wavelengths to design the projection fringe pattern, which is composed of the color fringe pattern corresponding to the projector resolution and the projection fringe pattern design, and the color fringe pattern is composed of at least two color bars with different colors alternately arranged;
    投影模块,用于将彩色条纹图投影到待测物体上,得到变形彩色图,将投影条纹图投影到待测物体上,得到变形条纹图;The projection module is used to project the color fringe pattern onto the object to be measured to obtain a deformed color image, and project the projected fringe pattern onto the object to be measured to obtain the deformed fringe pattern;
    分割模块,用于对变形彩色图进行至少两次颜色区域划分并得到对应的变形单色区域,根据变形单色区域的位置,将变形条纹图分割为至少两个分割条纹图;The segmentation module is used to divide the deformed color image into at least two color regions and obtain the corresponding deformed monochrome region, and divide the deformed fringe image into at least two segmented fringe images according to the position of the deformed monochrome region;
    建表运算模块,用于对于每个分割条纹图,分别获取包裹相位图并建立对应区域的查找表,根据绝对相位的计算公式,由包裹相位图和查找表恢复分割条纹图的绝对相位;The table building operation module is used to obtain the wrapped phase image for each segmentation fringe image and establish a lookup table for the corresponding area. According to the absolute phase calculation formula, the absolute phase of the segmentation fringe image is restored from the wrapped phase image and the lookup table;
    恢复形貌模块,用于由所有分割条纹图的绝对相位恢复出待测物体的三维形貌。The shape restoration module is used to restore the three-dimensional shape of the object to be measured from the absolute phase of all the segmented fringe patterns.
  9. 基于颜色分割的双条纹投影相位展开设备,其特征在于,包括:The double fringe projection phase unwrapping device based on color segmentation is characterized in that it includes:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected with the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1-7任一项所述的方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute any one of claims 1-7 Methods.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如权利要求1-7任一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to make a computer execute the method according to any one of claims 1-7 .
PCT/CN2020/081649 2020-02-24 2020-03-27 Double-fringe projection phase unwrapping method and apparatus based on color segmentation WO2021168971A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010110886.0 2020-02-24
CN202010110886.0A CN111174731B (en) 2020-02-24 2020-02-24 Color segmentation based double-stripe projection phase unwrapping method and device

Publications (1)

Publication Number Publication Date
WO2021168971A1 true WO2021168971A1 (en) 2021-09-02

Family

ID=70655014

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/081649 WO2021168971A1 (en) 2020-02-24 2020-03-27 Double-fringe projection phase unwrapping method and apparatus based on color segmentation

Country Status (2)

Country Link
CN (1) CN111174731B (en)
WO (1) WO2021168971A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004264249A (en) * 2003-03-04 2004-09-24 Fujitsu Ltd Image processing method in grid pattern projection method, measuring device and image processing device
CN101667303A (en) * 2009-09-29 2010-03-10 浙江工业大学 Three-dimensional reconstruction method based on coding structured light
CN103697815A (en) * 2014-01-15 2014-04-02 西安电子科技大学 Method for acquiring three-dimensional information of frequency mixing structured light based on phase encoding
CN106032976A (en) * 2015-03-20 2016-10-19 五邑大学 Three-fringe projection phase unwrapping method based on wavelength selection
US20190017814A1 (en) * 2017-07-17 2019-01-17 Sogang University Research Foundation Method for generating monochrome permutation structured-light pattern and structured-light system using the method thereof
CN110006365A (en) * 2019-04-15 2019-07-12 四川大学 Phase developing method, device and electronic equipment based on two-dimensional look-up table

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9420638D0 (en) * 1994-10-13 1994-11-30 Moore John H Three-dimensional digitiser
CN100408972C (en) * 2006-07-27 2008-08-06 西安交通大学 Three dimension object contour phase measuring method based on double frequency color strip projection
JP2008170281A (en) * 2007-01-11 2008-07-24 Nikon Corp Shape measuring device and shape measuring method
CN201138194Y (en) * 2007-04-17 2008-10-22 哈尔滨理工大学 Color encoded light three-dimensional measuring apparatus based on center of green fringe
CN101441066B (en) * 2008-12-23 2010-07-21 西安交通大学 Phase de-packaging method of color fringe coding
CN101975558B (en) * 2010-09-03 2012-04-11 东南大学 Rapid three-dimensional measurement method based on color grating projection
CN102322822B (en) * 2011-08-08 2013-04-17 西安交通大学 Three-dimensional measurement method for triple-frequency color fringe projection
CN102519394B (en) * 2011-11-18 2014-04-16 东南大学 High-adaptability three-dimensional measuring method based on color structured light
CN102519395B (en) * 2011-11-25 2013-12-18 东南大学 Color response calibration method in colored structure light three-dimensional measurement
CN104390607B (en) * 2014-11-05 2017-04-19 南昌航空大学 Phase encoding-based colorful structured light rapid three-dimensional measurement method
CN108534715A (en) * 2018-04-11 2018-09-14 天津工业大学 A kind of expansion phase solution phase method applied to different wave length three-dimensional measurement
KR102015219B1 (en) * 2018-04-24 2019-10-22 한국표준과학연구원 Apparatus and method for 3D measurement of freeform surfaces based on high-speed deflectometry using composite patterns
CN109540038A (en) * 2018-09-12 2019-03-29 天津大学 The adaptive light filling measurement method of machine vision based on colored multichannel double frequency phase shift
CN110608687A (en) * 2019-06-04 2019-12-24 重庆大学 Color coding grating crosstalk compensation method based on projection plane

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004264249A (en) * 2003-03-04 2004-09-24 Fujitsu Ltd Image processing method in grid pattern projection method, measuring device and image processing device
CN101667303A (en) * 2009-09-29 2010-03-10 浙江工业大学 Three-dimensional reconstruction method based on coding structured light
CN103697815A (en) * 2014-01-15 2014-04-02 西安电子科技大学 Method for acquiring three-dimensional information of frequency mixing structured light based on phase encoding
CN106032976A (en) * 2015-03-20 2016-10-19 五邑大学 Three-fringe projection phase unwrapping method based on wavelength selection
US20190017814A1 (en) * 2017-07-17 2019-01-17 Sogang University Research Foundation Method for generating monochrome permutation structured-light pattern and structured-light system using the method thereof
CN110006365A (en) * 2019-04-15 2019-07-12 四川大学 Phase developing method, device and electronic equipment based on two-dimensional look-up table

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LONG JIALE, ZHANG JIANMIN, FAN ZHIHUI: "Implementation of 3-D Shape Measurement with Digital Double-wavelength Fringe Projections", OPTOELECTRONIC TECHNOLOGY, NANJING INSTITUTE OF ELECTRONIC DEVICES, MINISTRY OF INFORMATION INDUSTRY, CN, vol. 35, no. 4, 1 December 2015 (2015-12-01), CN, pages 258 - 262, XP055841601, ISSN: 1005-488X, DOI: 10.19453/j.cnki.1005-488x.2015.04.009 *
ZHANG ZONGHUA, LIAN XIAOJIE; GAO NAN: "Crosstalk Elimination Method for Color Composite Fringe Projection Measuring Systems", ACTA OPTICA SINICA, SHANGHAI KEXUE JISHU CHUBANSHE , SHANGHAI, CN, vol. 38, no. 8, 1 August 2018 (2018-08-01), CN, pages 76 - 87, XP055841603, ISSN: 0253-2239, DOI: 10.3788/AOS201838.0815005 *

Also Published As

Publication number Publication date
CN111174731B (en) 2021-06-08
CN111174731A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
EP2317470B1 (en) Image inpainting apparatus and method using restricted search region
JP6102088B2 (en) Image projection device, image processing device, image projection method, program for image projection method, and recording medium recording the program
JP3663112B2 (en) Image de-mosaic method using directional smoothing
US20160080626A1 (en) Computational Camera Using Fusion of Image Sensors
ITVA20070059A1 (en) METHOD AND RELATIVE COLOR INTERPOLATION DEVICE OF AN IMAGE ACQUIRED BY A DIGITAL COLOR SENSOR
CN110852953B (en) Image interpolation method and device, storage medium, image signal processor and terminal
KR20150037668A (en) Method and device for edge shape enforcement for visual enhancement of depth image based rendering of a three-dimensional video stream
JP2001095001A (en) Demosaic method of image
CN110784623A (en) Gamut mapping using luminance mapping also based on the luminance of cusp colors
KR100721338B1 (en) Color interpolation algorithm of digital camera
CN111163301A (en) Color adjustment method, device and computer readable storage medium
JP6771134B2 (en) Image correction method and image correction device
WO2021168971A1 (en) Double-fringe projection phase unwrapping method and apparatus based on color segmentation
US8346019B2 (en) Image generation method and apparatus, program therefor, and storage medium which stores the program
WO2019196109A1 (en) Method and apparatus for suppressing image pseudo-colour
JP2010181951A (en) Image processor and image processing program
CN105678718A (en) Method and device for image denoising
WO2023078015A1 (en) Intra-prediction mode screening method and apparatus for video frame
KR20130006246A (en) Depth image conversion apparatus and method thereof
CN111161204B (en) Image processing method and device, electronic equipment and readable storage medium
CN105049820A (en) IMAGE PROCESSING APPARATUS, IMAGING APPARATUS, and IMAGE PROCESSING METHOD
Li et al. High-quality fringe pattern generation based on binary pattern optimization with projector defocusing
KR102119138B1 (en) Bayesian based image restoration method for camera
KR101327790B1 (en) Image interpolation method and apparatus
CN114494467A (en) Image color migration method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20921661

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20921661

Country of ref document: EP

Kind code of ref document: A1