[go: up one dir, main page]

CN106802137B - A kind of phase developing method and system - Google Patents

A kind of phase developing method and system Download PDF

Info

Publication number
CN106802137B
CN106802137B CN201710029705.XA CN201710029705A CN106802137B CN 106802137 B CN106802137 B CN 106802137B CN 201710029705 A CN201710029705 A CN 201710029705A CN 106802137 B CN106802137 B CN 106802137B
Authority
CN
China
Prior art keywords
phase
unwrapped
unwrapping
distribution result
module
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201710029705.XA
Other languages
Chinese (zh)
Other versions
CN106802137A (en
Inventor
张启灿
李凤娇
刘守起
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan University
Original Assignee
Sichuan University
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 Sichuan University filed Critical Sichuan University
Priority to CN201710029705.XA priority Critical patent/CN106802137B/en
Publication of CN106802137A publication Critical patent/CN106802137A/en
Application granted granted Critical
Publication of CN106802137B publication Critical patent/CN106802137B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/2518Projection by scanning of the object
    • G01B11/2527Projection by scanning of the object with phase change by in-plane movement of the patern

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Image Processing (AREA)

Abstract

本发明实施例提供了一种相位展开方法及系统,该方法包括:根据投射到被测物体表面的结构光获得所述被测物体的截断相位;通过拍摄得到参考平面并获取参考平面展开相位,根据所述截断相位和所述参考平面展开相位进行展开操作,得到第一相位分布结果;构建虚拟平面连续相位,根据所述截断相位和所述虚拟平面连续相位进行展开操作,得到第二相位分布结果;将所述第一相位分布结果和所述第二相位分布结果进行相位区域融合,得到所述被测物体的展开相位及高度分布结果。本发明通过增加虚拟平面连续相位来辅助相位展开,进行多次分级相位展开后,结合多个展开相位得到最终正确的展开相位,展开速度快且不易发生误差传递蔓延和扩散。

Embodiments of the present invention provide a phase unwrapping method and system, the method comprising: obtaining a truncated phase of the measured object according to structured light projected on the surface of the measured object; obtaining a reference plane by photographing and obtaining the reference plane unwrapping phase, Perform the unwrapping operation according to the truncated phase and the unwrapped phase of the reference plane to obtain a first phase distribution result; construct a virtual plane continuous phase, and perform the unwrapping operation according to the truncated phase and the virtual plane continuous phase to obtain a second phase distribution Result: The first phase distribution result and the second phase distribution result are fused in the phase region to obtain the unwrapped phase and height distribution results of the measured object. The present invention assists phase unwrapping by adding virtual plane continuous phases, and after performing multiple stages of phase unwrapping, a final correct unwrapping phase is obtained by combining multiple unwrapping phases, the unwrapping speed is fast, and error transmission spread and diffusion are not easy to occur.

Description

一种相位展开方法及系统A phase unwrapping method and system

技术领域technical field

本发明涉及计算机测量计算领域,具体而言,涉及一种相位展开方法及系统。The invention relates to the field of computer measurement and calculation, in particular, to a phase unwrapping method and system.

背景技术Background technique

近年来,随着计算机技术,光学和光电子技术的迅速发展,物体的三维面形测量具有重要的意义。基于相位分析类的光学三维面形测量方法因为具有非接触、测量速度快、精度高等优点,已得到深入研究并且被广泛应用。这一类方法是将被测面形的高度分布调制到投影光场的相位变化中,分析获取到的变形条纹图,计算得到对应的相位分布来重建被测物体的三维面形分布。由于相位分布是通过反正切函数运算得到,计算出的相位值被截断在函数主值范围(-π,π]内,呈锯齿形的不连续状分布,通常称为相位被截断了。因此,在重建被测物体的高度分布之前,必须将此截断的相位恢复为原有的连续相位,需要在相位间断点处加减2nπ的方法进行修正,这一过程就是相位展开。In recent years, with the rapid development of computer technology, optics and optoelectronic technology, the three-dimensional surface measurement of objects is of great significance. Optical three-dimensional surface measurement methods based on phase analysis have been deeply studied and widely used because of their advantages of non-contact, fast measurement speed and high precision. This kind of method modulates the height distribution of the measured surface shape into the phase change of the projected light field, analyzes the obtained deformed fringe pattern, and calculates the corresponding phase distribution to reconstruct the three-dimensional surface shape distribution of the measured object. Since the phase distribution is obtained by the arctangent function, the calculated phase value is truncated within the main value range of the function (-π, π], showing a sawtooth-shaped discontinuous distribution, which is usually called phase truncated. Therefore, Before reconstructing the height distribution of the measured object, the truncated phase must be restored to the original continuous phase, which needs to be corrected by adding or subtracting 2nπ at the phase discontinuity point. This process is phase unwrapping.

传统的空间相位展开方法是在截断相位二维空间中按照一定路径逐点搜索定位截断点进行相位展开,较为费时,而且一些算法会在展开路径上造成“拉丝”状的错误蔓延累计;时间相位展开方法可以避免该类错误,但需要投影和获取多幅条纹周期不同或者对每个条纹周期进行级次标记的图像,利用周期之间的关系或者编码级次进行时间轴上的相位展开,该类方法给测量和重建均带来了时耗和复杂度。The traditional spatial phase unwrapping method is to search and locate the truncation point point by point in the truncated phase two-dimensional space for phase unwrapping. The unwrapping method can avoid such errors, but it needs to project and acquire multiple images with different fringe periods or mark each fringe period in order, and use the relationship between the periods or the coding order to perform phase unwrapping on the time axis. Class methods bring time and complexity to both measurement and reconstruction.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明的目的在于提供一种相位展开方法及系统,以改善上述问题。In view of this, the purpose of the present invention is to provide a phase unwrapping method and system to improve the above problems.

本发明实施例提供一种相位展开方法,应用于虚拟相位平面展开装置,所述方法包括:An embodiment of the present invention provides a phase unwrapping method, which is applied to a virtual phase plane unwrapping device, and the method includes:

根据投射到被测物体表面的结构光获得所述被测物体的截断相位;Obtain the truncation phase of the measured object according to the structured light projected on the surface of the measured object;

通过拍摄得到参考平面并获取参考平面展开相位,根据所述截断相位和所述参考平面展开相位进行展开操作,得到第一相位分布结果;Obtain the reference plane by shooting and obtain the unwrapped phase of the reference plane, and perform unwrapping operation according to the truncated phase and the unwrapped phase of the reference plane, to obtain a first phase distribution result;

构建虚拟平面连续相位,根据所述截断相位和所述虚拟平面连续相位进行展开操作,得到第二相位分布结果;constructing a virtual plane continuous phase, and performing an expansion operation according to the truncated phase and the virtual plane continuous phase to obtain a second phase distribution result;

将所述第一相位分布结果和所述第二相位分布结果进行相位区域融合,得到所述被测物体的展开相位及高度分布结果。Phase region fusion is performed on the first phase distribution result and the second phase distribution result to obtain the unwrapped phase and height distribution results of the measured object.

本发明另一实施例提供一种相位展开系统,应用于多平面相位展开装置,所述系统包括截断相位获取模块、第一展开模块、第二展开模块以及融合模块;Another embodiment of the present invention provides a phase unwrapping system, applied to a multi-plane phase unwrapping device, the system includes a truncated phase acquisition module, a first unwrapping module, a second unwrapping module, and a fusion module;

所述截断相位获取模块用于根据投射到被测物体表面的结构光获得所述被测物体的截断相位;The truncated phase acquisition module is used to obtain the truncated phase of the measured object according to the structured light projected on the surface of the measured object;

所述第一展开模块用于通过拍摄得到参考平面并获取参考平面展开相位,根据所述截断相位和所述参考平面展开相位进行展开操作,得到第一相位分布结果;The first unwrapping module is used to obtain the reference plane by shooting and obtain the unwrapped phase of the reference plane, and perform unwrapping operation according to the truncated phase and the unwrapped phase of the reference plane to obtain a first phase distribution result;

所述第二展开模块用于构建虚拟平面连续相位,根据所述截断相位和所述虚拟平面连续相位进行展开操作,得到第二相位分布结果;The second expansion module is used to construct a virtual plane continuous phase, and an expansion operation is performed according to the truncated phase and the virtual plane continuous phase to obtain a second phase distribution result;

所述融合模块用于将所述第一相位分布结果和所述第二相位分布结果进行相位区域融合操作,得到所述被测物体的展开相位及高度分布结果。The fusion module is configured to perform a phase region fusion operation on the first phase distribution result and the second phase distribution result to obtain the unwrapped phase and height distribution results of the measured object.

本发明实施例提供的相位展开方法及系统,通过在参考平面展开相位的基础上构建虚拟平面连续相位来辅助被测物体表面的相位展开,进行多次分级相位展开,结合多个展开相位结果以得到最终正确的展开相位。本发明提供的相位展开方法无需标记与编码,展开速度快,且不需在二维平面内进行逐点空间相位展开,不会产生误差传递蔓延和扩散。The phase unwrapping method and system provided by the embodiments of the present invention assist the phase unwrapping of the surface of the object to be measured by constructing a virtual plane continuous phase on the basis of the reference plane unwrapping phase, perform multiple hierarchical phase unwrapping, and combine multiple unwrapped phase results to obtain Get the final correct unwrapped phase. The phase unwrapping method provided by the present invention does not need marking and coding, and the unwrapping speed is fast, and it does not need to perform point-by-point spatial phase unwrapping in a two-dimensional plane, and does not generate error transmission spread and diffusion.

为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below, and are described in detail as follows in conjunction with the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and therefore do not It should be regarded as a limitation of the scope, and for those of ordinary skill in the art, other related drawings can also be obtained according to these drawings without any creative effort.

图1为本发明实施例提供的一种虚拟相位平面展开装置的方框示意图。FIG. 1 is a schematic block diagram of a virtual phase plane unwrapping apparatus according to an embodiment of the present invention.

图2为本发明实施例提供的一种相位展开方法的流程图。FIG. 2 is a flowchart of a phase unwrapping method provided by an embodiment of the present invention.

图3为图2中步骤S103的子步骤的流程图。FIG. 3 is a flowchart of sub-steps of step S103 in FIG. 2 .

图4为本发明实施例提供的一种相位展开原理图。FIG. 4 is a schematic diagram of a phase unwrapping provided by an embodiment of the present invention.

图5为图2中步骤S105的子步骤的流程图。FIG. 5 is a flowchart of sub-steps of step S105 in FIG. 2 .

图6为图2中步骤S107的子步骤的流程图。FIG. 6 is a flowchart of sub-steps of step S107 in FIG. 2 .

图7为本发明实施例提供的相位展开结果分布图。FIG. 7 is a distribution diagram of phase unwrapping results provided by an embodiment of the present invention.

图8为图7中标记线上相位展开过程示意图。FIG. 8 is a schematic diagram of the phase unwrapping process on the marked line in FIG. 7 .

图9为本发明实施例提供的重建高度分布结果图。FIG. 9 is a diagram of a reconstruction height distribution result provided by an embodiment of the present invention.

图10为本发明实施例提供的相位展开系统的示意性结构框图。FIG. 10 is a schematic structural block diagram of a phase unwrapping system provided by an embodiment of the present invention.

图11为本发明实施例提供的第一展开模块的示意性结构框图。FIG. 11 is a schematic structural block diagram of a first expansion module provided by an embodiment of the present invention.

图12为本发明实施例提供的第二展开模块的示意性结构框图。FIG. 12 is a schematic structural block diagram of a second expansion module provided by an embodiment of the present invention.

图13为本发明实施例提供的融合模块的示意性结构框图。FIG. 13 is a schematic structural block diagram of a fusion module provided by an embodiment of the present invention.

图14为本发明实施例提供的第一案例的相位展开结果。FIG. 14 is a phase unwrapping result of the first case provided by the embodiment of the present invention.

图15为本发明实施例提供的第二案例的相位展开结果。FIG. 15 is a phase unwrapping result of the second case provided by the embodiment of the present invention.

图标:100-虚拟相位平面展开装置;110-相位展开系统;111-截断相位获取模块;112-第一展开模块;1121-第一相位级次获取子模块;1122-第一展开相位获取子模块;1123-第一相位分布获取子模块;113-第二展开模块;1131-第二相位级次获取子模块;1132-第二展开相位获取子模块;1133-第二相位分布获取子模块;114-融合模块;1141-相位区域融合子模块;1142-扣除子模块;1143-重建子模块;120-处理器;130-存储器。Icons: 100-virtual phase plane unwrapping device; 110-phase unwrapping system; 111-truncated phase acquisition module; 112-first unwrapping module; 1121-first phase order acquisition sub-module; 1122-first unwrapped phase acquisition sub-module 1123-the first phase distribution acquisition submodule; 113-the second expansion module; 1131-the second phase order acquisition submodule; 1132-the second expansion phase acquisition submodule; 1133-the second phase distribution acquisition submodule; 114 - Fusion module; 1141 - Phase area fusion sub-module; 1142 - Subtraction sub-module; 1143 - Reconstruction sub-module; 120 - Processor; 130 - Memory.

具体实施方式Detailed ways

下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. The components of the embodiments of the invention generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Thus, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but is merely representative of selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present invention.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.

请参阅图1,为本发明实施例提供的一种虚拟相位平面展开装置100的方框示意图。在本实施例中,所述虚拟相位平面展开装置100包括相位展开系统110、处理器120以及存储器130。其中,所述存储器130与处理器120之间直接或间接地电性连接,以实现数据的传输或交互。所述相位展开系统110包括至少一个可以软件或固件的形式存储于所述存储器130中或固化在所述虚拟相位平面展开装置100的操作系统中的软件功能模块。所述处理器120用于执行存储器130中存储的可执行模块,例如所述相位展开系统110包括的软件功能模块或计算机程序,以对多平面截断相位进行展开操作。Please refer to FIG. 1 , which is a schematic block diagram of a virtual phase plane unwrapping apparatus 100 according to an embodiment of the present invention. In this embodiment, the virtual phase plane unwrapping apparatus 100 includes a phase unwrapping system 110 , a processor 120 and a memory 130 . Wherein, the memory 130 and the processor 120 are directly or indirectly electrically connected to realize data transmission or interaction. The phase unwrapping system 110 includes at least one software function module that can be stored in the memory 130 in the form of software or firmware or fixed in the operating system of the virtual phase plane unwrapping apparatus 100 . The processor 120 is configured to execute executable modules stored in the memory 130, such as software function modules or computer programs included in the phase unwrapping system 110, so as to perform unwrapping operations on multi-plane truncated phases.

本实施例中,所述虚拟相位平面展开装置100可以是,但不限于,网络服务器、数据库服务器或安装于服务器中的数据处理装置等。In this embodiment, the virtual phase plane unwrapping apparatus 100 may be, but not limited to, a network server, a database server, or a data processing apparatus installed in the server, and the like.

如图2所示,是本发明实施例提供的一种应用于图1所示的多平面相位展开装置100的相位展开方法的示意性流程图。所应说明是,本实施例提供的方法不以图2及以下所述的顺序为限制。下面将对图2所示的具体流程进行详细的阐述。As shown in FIG. 2 , it is a schematic flowchart of a phase unwrapping method applied to the multi-plane phase unwrapping apparatus 100 shown in FIG. 1 according to an embodiment of the present invention. It should be noted that the method provided in this embodiment is not limited to the sequence described in FIG. 2 and the following. The specific flow shown in FIG. 2 will be described in detail below.

步骤S101,根据投射到被测物体表面的结构光获得所述被测物体的截断相位。Step S101 , obtaining the cut-off phase of the measured object according to the structured light projected onto the surface of the measured object.

在本实施例中,当结构光通过余弦光栅投射到被测物体表面上时,可以得到被测物体的变形条纹图,可选地,一般采用投影仪等设备进行结构光投射,根据要投影的编码光栅图像的不同,可以采用幻灯片投影仪、数字投影仪、出射线光束的激光器或出射光斑的激光器等。然后,可以采用电耦合器件、CMOS相机或其他的光电传感器阵列来采集图像,并将采集到的图像传输至虚拟相位平面展开装置100中,在装置中进行图像的处理。其中,条纹图可以用如下公式来表示:In this embodiment, when the structured light is projected onto the surface of the measured object through the cosine grating, the deformed fringe pattern of the measured object can be obtained. Optionally, a projector or other equipment is generally used for structured light projection. Depending on the coded grating image, a slide projector, a digital projector, a laser that emits a ray beam, or a laser that emits a spot, etc. can be used. Then, an electrical coupling device, a CMOS camera, or other photoelectric sensor arrays can be used to collect images, and the collected images can be transmitted to the virtual phase plane unwrapping apparatus 100, where image processing is performed. Among them, the fringe pattern can be represented by the following formula:

其中,a(x,y)为背景光强,b(x,y)为条纹对比度,f0为投射光栅的频率,为由高度分布引起的相位调制。where a(x, y) is the background light intensity, b(x, y) is the fringe contrast, f 0 is the frequency of the projected grating, is the phase modulation caused by the height distribution.

为了得到被测物体的相对高度分布并且消除相位展开系统110的误差,可以对一参考平面进行测量,对被测物体高度分布h(x,y)的参考变形条纹可以表示为:In order to obtain the relative height distribution of the measured object and eliminate the error of the phase unwrapping system 110, a reference plane can be measured, and the reference deformation fringes of the measured object height distribution h(x, y) can be expressed as:

对所述条纹图进行空域、时域的变换和分析,得到所述被测物体的截断相位。Transform and analyze the fringe image in the space domain and the time domain to obtain the truncated phase of the measured object.

可选地,可对式(1)和式(2)得到的条纹图进行二维傅里叶变换,并采用合适的滤波窗滤出基频,然后进行二维逆傅里叶变换之后,可以得到如下指数形式表达的复分布:Optionally, two-dimensional Fourier transform can be performed on the fringe patterns obtained by formula (1) and formula (2), and a suitable filter window is used to filter out the fundamental frequency, and then after two-dimensional inverse Fourier transform can be performed. The complex distribution expressed in exponential form is obtained as follows:

其中,w(x,y)为b(x,y)的傅里叶谱分布。同样,对参考条纹也做同样的变换,得到如下表示:where w(x,y) is the Fourier spectral distribution of b(x,y). Similarly, do the same transformation for the reference stripes, and get the following representation:

可选地,可对式(3)和式(4)的复分布进行计算,以得到两者的相位差:Optionally, the complex distributions of equations (3) and (4) can be calculated to obtain their phase differences:

其中,arctan{}表示反正切函数,imag[]表示取复数虚部,real[]表示取复数实部。Among them, arctan{} represents the arc tangent function, imag[] represents the complex imaginary part, and real[] represents the complex real part.

需要说明的是,在本实施例中,采用的是傅里叶变换轮廓术的方法得到所述截断相位。可选地,还可以通过其他的方法获得所述截断相位,例如,空域的余弦变换、小波变换和S变换,时域的条纹相移等,只要能实现截断相位获取即可,在本实施例中不作具体限制。It should be noted that, in this embodiment, the method of Fourier transform profilometry is used to obtain the truncated phase. Optionally, the truncated phase can also be obtained by other methods, for example, cosine transform, wavelet transform and S transform in the space domain, fringe phase shift in the time domain, etc., as long as the truncated phase can be obtained, in this embodiment. There are no specific restrictions.

步骤S103,通过拍摄得到参考平面并获取参考平面展开相位,根据所述截断相位和所述参考平面展开相位进行展开操作,得到第一相位分布结果。In step S103, a reference plane is obtained by photographing and a reference plane unwrapped phase is acquired, and an unwrapping operation is performed according to the truncated phase and the reference plane unwrapped phase to obtain a first phase distribution result.

可选地,在本实施例中,可以通过相机拍摄以获取到参考平面或者是根据标定以获取得到参考平面,具体实施方式本实施例中不作限制。Optionally, in this embodiment, the reference plane may be obtained by taking pictures with a camera or obtained by calibration, and the specific implementation manner is not limited in this embodiment.

具体地,请参阅图3,步骤S103可以包括步骤S1031、步骤S1033以及步骤S1035三个子步骤。Specifically, referring to FIG. 3 , step S103 may include three sub-steps of step S1031 , step S1033 and step S1035 .

步骤S1031,将所述截断相位和所述参考平面展开相位进行做差处理,将差值与2π相比较得到第一相位级次。Step S1031, perform a difference process between the truncated phase and the reference plane unwrapped phase, and compare the difference with 2π to obtain a first phase order.

可选地,在对被测物体的条纹进行分析得到对应相位信息后,被测物体的相位通常是被截断分布在(-π,π]内。不失一般性的,所构造的参考平面的截断相位相对容易展开,在进行简单空间行列展开后得到参考平面展开相位φo。将被测物体的截断相位与参考平面展开相位φo二者的差值与2π相比较,可以获得第一相位级次K,其中K为正整数。第一相位级次K可以指导截断相位的展开,具体的表达形式可以如下:Optionally, after analyzing the stripes of the measured object to obtain corresponding phase information, the phase of the measured object is usually truncated and distributed within (-π, π]. Without loss of generality, the constructed reference plane has The truncated phase is relatively easy to expand, and the reference plane unwrapped phase φ o is obtained after a simple spatial row-column expansion. The first phase order K can be obtained by comparing the difference between the two unwrapped phases φ o with the reference plane and 2π, where K is a positive integer. The first phase order K can guide the unfolding of the truncated phase, and the specific expression can be as follows:

其中,相应的第一相位级次K可表示为:Among them, the corresponding first phase order K can be expressed as:

其中,floor函数为向下取整函数。Among them, the floor function is a round-down function.

步骤S1033,根据所述第一相位级次和所述参考平面展开相位得到所述被测物体的第一展开相位。Step S1033, obtaining a first unwrapped phase of the measured object according to the first phase order and the unwrapped phase of the reference plane.

在获得正确的第一相位级次K后,可以得到被测物体的被测面的展开相位φ1,该展开相位可用作后续的相位融合:After obtaining the correct first phase order K, the unwrapped phase φ 1 of the measured surface of the measured object can be obtained, which can be used for subsequent phase fusion:

步骤S1035,将所述第一展开相位和所述参考平面展开相位进行做差处理,得到所述第一相位分布结果。Step S1035 , performing difference processing between the first unwrapped phase and the reference plane unwrapped phase to obtain the first phase distribution result.

可选地,选取被测物体(256*256像素的peaks函数,条纹周期p=21像素)截断相位分布中的一行为例来阐述该相位展开的过程和原理。如图4所示,图4(a)为参考平面上该行展开相位分布,图4(b)为被测物体上该行的截断相位,图4(c)为图4(a)和图4(b)两个相位分布之差与2π相比后得到的第一相位级次值K。图4(d)为图4(b)对应的展开相位,图4(e)为被测物体展开相位并扣除参考平面相位的相位分布,即被测物体高度引起的相位变化,可用来重建被测物体对应高度分布。其中,横轴表示在X位置上像素(Pixel)的变化,竖轴表示相位(Phase)变化,单位为弧度(Rad)。Optionally, the process and principle of the phase unwrapping is described by taking a line in the truncated phase distribution of the measured object (peaks function of 256*256 pixels, fringe period p=21 pixels) as an example. As shown in Figure 4, Figure 4(a) is the unwrapped phase distribution of the row on the reference plane, Figure 4(b) is the truncated phase of the row on the measured object, and Figure 4(c) is Figure 4(a) and Figure 4(c). 4(b) The first phase order value K obtained by comparing the difference between the two phase distributions with 2π. Fig. 4(d) is the unwrapped phase corresponding to Fig. 4(b), and Fig. 4(e) is the phase distribution of the unwrapped phase of the measured object and the phase of the reference plane deducted, that is, the phase change caused by the height of the measured object, which can be used to reconstruct the measured object. The measured object corresponds to the height distribution. Among them, the horizontal axis represents the change of the pixel (Pixel) at the X position, and the vertical axis represents the change of the phase (Phase), and the unit is radian (Rad).

步骤S105,构建虚拟平面连续相位,根据所述截断相位和所述虚拟平面连续相位进行展开操作,得到第二相位分布结果。Step S105 , constructing a virtual plane continuous phase, and performing an expansion operation according to the truncated phase and the virtual plane continuous phase to obtain a second phase distribution result.

可选地,在本实施例中,当被测物体的表面形状相对较为复杂或是相位截断次数较多时,需要在参考平面的基础上虚拟出新的虚拟平面来辅助被测表面的相位展开。Optionally, in this embodiment, when the surface shape of the measured object is relatively complex or the number of phase truncations is large, a new virtual plane needs to be virtualized on the basis of the reference plane to assist the phase unwrapping of the measured surface.

可选地,需要构建虚拟平面相位,需要说明的是,在本实施例中,构建的虚拟平面可以为一个也可以为多个。可选地,虚拟平面连续相位φs与参考平面展开相位φo之间满足如下关系:Optionally, a virtual plane phase needs to be constructed. It should be noted that, in this embodiment, the constructed virtual plane may be one or multiple. Optionally, the following relationship is satisfied between the continuous phase φ s of the virtual plane and the unwrapped phase φ o of the reference plane:

o-2nπ)<φs<(φo+2nπ)o -2nπ)<φ s <(φ o +2nπ)

其中,n为正整数(1,2,3,…,n)。即虚拟平面连续相位φs要略小于φo+2nπ或是略大于φo-2nπ,以便能够准确地确定相位截断级次。where n is a positive integer (1,2,3,...,n). That is, the virtual plane continuous phase φ s should be slightly smaller than φ o +2nπ or slightly larger than φ o −2nπ, so that the phase truncation order can be accurately determined.

具体地,请参阅图5,步骤S105可以包括步骤S1051、步骤S1053以及步骤S1055三个子步骤。Specifically, referring to FIG. 5 , step S105 may include three sub-steps of step S1051 , step S1053 and step S1055 .

步骤S1051,将所述截断相位和所述虚拟平面连续相位进行做差处理,将差值与2π相比较得到第二相位级次。Step S1051, performing a difference process between the truncated phase and the continuous phase of the virtual plane, and comparing the difference with 2π to obtain a second phase order.

步骤S1053,根据所述第二相位级次和所述虚拟平面连续相位得到所述被测物体的第二展开相位。Step S1053: Obtain a second unwrapped phase of the measured object according to the second phase order and the virtual plane continuous phase.

步骤S1055,将所述第二展开相位和所述参考参考平面展开相位进行做差处理,得到所述第二相位分布结果。Step S1055 , performing difference processing between the second unwrapped phase and the unwrapped phase of the reference reference plane to obtain the second phase distribution result.

可选地,所述第二相位分布结果获取的大致步骤与所述第一相位分布结果获取步骤相似,在此不作一一赘述。Optionally, the general steps of obtaining the second phase distribution result are similar to the steps of obtaining the first phase distribution result, and details are not described here.

即在获得虚拟平面连续相位之后,按照上述公式(6)~公式(8)进行展开操作得到被测物体的展开相位,结合该展开相位及基于参考平面获得的展开相位可进行后续的相位融合。That is, after obtaining the continuous phase of the virtual plane, the unwrapping operation is performed according to the above formulas (6) to (8) to obtain the unwrapped phase of the measured object, and the subsequent phase fusion can be performed by combining the unwrapped phase and the unwrapped phase obtained based on the reference plane.

步骤S107,将所述第一相位分布结果和所述第二相位分布结果进行相位区域融合,得到所述被测物体的展开相位及高度分布结果。Step S107: Perform phase region fusion on the first phase distribution result and the second phase distribution result to obtain the unwrapped phase and height distribution results of the measured object.

具体地,请参阅图6,步骤S107可以包括步骤S1071、步骤S1073以及步骤S1075三个子步骤。Specifically, referring to FIG. 6 , step S107 may include three sub-steps of step S1071 , step S1073 and step S1075 .

步骤S1071,将所述第一相位分布结果和所述第二相位分布结果进行相位区域融合。Step S1071, perform phase region fusion on the first phase distribution result and the second phase distribution result.

步骤S1073,扣除在构建所述虚拟平面连续相位时引入的相位级次,得到所述被测物体的相位分布。Step S1073, deducting the phase order introduced when constructing the continuous phase of the virtual plane to obtain the phase distribution of the measured object.

不失一般性地,在利用虚拟平面进行截断相位展开时,会人为地造成相位级次的变化,因此需要在多个展开相位区域融合时,消除掉人为引入的相位级次变化。Without loss of generality, when the virtual plane is used for truncated phase unwrapping, the phase order changes will be artificially caused, so it is necessary to eliminate the artificially introduced phase order changes when multiple unwrapped phase regions are fused.

步骤S1075,根据所述被测物体的展开相位与高度之间的关系,重建所述被测物体的高度分布。Step S1075, reconstruct the height distribution of the measured object according to the relationship between the unfolded phase and the height of the measured object.

在具体实施时,选取被测物体(256*256像素的6.3*peaks函数,条纹周期p=21像素),在由行列相位展开方法得到参考平面展开相位φo后,将得到的参考平面展开相位φo按照公式(6)~(8)执行第一次展开操作并扣除参考平面展开相位,得到第一相位分布结果,如图7(a)所示,其中,X轴(Position X)上图像单位为像素(Pixel),Y轴(Position Y)上图像单位为像素(Pixel)。In the specific implementation, select the measured object (6.3*peaks function of 256*256 pixels, fringe period p=21 pixels), after obtaining the reference plane unwrapping phase φ o by the row-column phase unwrapping method, the obtained reference plane unwrapping the phase φ o Perform the first unwrapping operation according to formulas (6) to (8) and deduct the unwrapped phase of the reference plane to obtain the first phase distribution result, as shown in Figure 7(a), where the image on the X-axis (Position X) The unit is pixel (Pixel), and the image unit on the Y axis (Position Y) is pixel (Pixel).

根据虚拟平面的构建要求,得到虚拟平面连续相位φs1和φs2,其中,φs1=φo-2π+1,φs2=φo+2π-1。将得到的虚拟平面连续相位φs1和φs2按照公式(6)~(8)执行第二次和第三次展开操作并扣除参考平面展开相位,得到第二相位分布结果和第三相位分布结果,分别如图7(b)和图7(c)所示。According to the construction requirements of the virtual plane, the continuous phases φ s1 and φ s2 of the virtual plane are obtained, where φ s1o -2π+1, and φ s2o +2π-1. Perform the second and third unwrapping operations on the obtained virtual plane continuous phases φ s1 and φ s2 according to formulas (6) to (8) and deduct the reference plane unwrapping phase to obtain the second phase distribution result and the third phase distribution result. , as shown in Fig. 7(b) and Fig. 7(c), respectively.

选取图7(a)、图7(b)和图7(c)中虚线这一列,得到的相应的相位分布如图8(a)所示,其中,图8(a)中表示图7(a)虚线的曲线展开出错的部分,可以用表示图7(b)中虚线的曲线来融合,那么在图7(a)中区域1和区域2在图7(b)中所示的第二次展开操作后是连续的,所以可以融合两次展开的相位分布,得到区域1和区域2的正确相位。Selecting the column of dotted lines in Fig. 7(a), Fig. 7(b) and Fig. 7(c), the corresponding phase distribution obtained is shown in Fig. 8(a), where Fig. 8(a) represents Fig. 7( a) The dashed curve expands the wrong part, which can be merged with the curve representing the dashed line in Fig. 7(b), then in Fig. 7(a) area 1 and area 2 are shown in Fig. 7(b). The second unwrapping operation is continuous, so the phase distributions of the two unwrappings can be fused to obtain the correct phase for region 1 and region 2.

如果选取图7(a)、图7(b)和图7(c)中实线这一列,得到的相应的相位分布如图8(b)所示。图8(b)中表示图7(a)实线的曲线展开前面截断部分在区域2已经由图7(b)融合成正确相位(图8(a)),该曲线后面未展开的部分可以利用图8(b)中表示图7(c)实线部分的曲线进行融合。图7(a)中区域3在图7(c)所示的第二次展开操作后是连续的,所以可以利用两次展开的相位分布得到区域3的正确相位。最终得到被测物体的正确展开相位,如图7(d)所示。进而,得到被测物体的重建高度分布,如图9所示,其中,被测物体三维图分别用X位置、Y位置以及高度Height位置上的像素表示,高度的单位为毫米(mm)。If the solid line column in Figure 7(a), Figure 7(b) and Figure 7(c) is selected, the corresponding phase distribution obtained is shown in Figure 8(b). In Fig. 8(b), the truncated part of the curve showing the solid line in Fig. 7(a) has been fused into the correct phase in region 2 by Fig. 7(b) (Fig. 8(a)), and the undeveloped part behind the curve can be The fusion is performed using the curve in Fig. 8(b) representing the solid line portion of Fig. 7(c). In Fig. 7(a), the region 3 is continuous after the second unwrapping operation shown in Fig. 7(c), so the correct phase of the region 3 can be obtained by using the phase distribution of the two unwrapping. Finally, the correct unwrapped phase of the measured object is obtained, as shown in Figure 7(d). Furthermore, the reconstructed height distribution of the measured object is obtained, as shown in Figure 9, where the three-dimensional image of the measured object is represented by pixels at the X position, the Y position, and the height position, and the unit of height is millimeters (mm).

如图10所示,是本发明实施例提供的一种相位展开系统110的功能模块框图。该相位展开系统110包括截断相位获取模块111、第一展开模块112、第二展开模块113以及融合模块114。下面对图10所示的各功能模块进行详细阐述。As shown in FIG. 10 , it is a functional module block diagram of a phase unwrapping system 110 provided by an embodiment of the present invention. The phase unwrapping system 110 includes a truncated phase acquisition module 111 , a first unwrapping module 112 , a second unwrapping module 113 and a fusion module 114 . Each functional module shown in FIG. 10 will be described in detail below.

所述截断相位获取模块111用于根据投射到被测物体表面的结构光获得所述被测物体的截断相位。该模块可用于执行图2中所示的步骤S101。The truncation phase obtaining module 111 is configured to obtain the truncation phase of the object to be measured according to the structured light projected onto the surface of the object to be measured. This module can be used to perform step S101 shown in FIG. 2 .

所述第一展开模块112用于通过拍摄得到参考平面并获取参考平面展开相位,根据所述截断相位和所述参考平面展开相位进行展开操作,得到第一相位分布结果。该模块可用于执行图2中所示的步骤S103。The first unwrapping module 112 is configured to obtain a reference plane by photographing and obtain the unwrapped phase of the reference plane, and perform unwrapping operations according to the truncation phase and the unwrapped phase of the reference plane, to obtain a first phase distribution result. This module can be used to perform step S103 shown in FIG. 2 .

所述第二展开模块113用于构建虚拟平面连续相位,根据所述截断相位和所述虚拟平面连续相位进行展开操作,得到第二相位分布结果。该模块可用于执行图2中所示的步骤S105。The second unwrapping module 113 is configured to construct a virtual plane continuous phase, and perform unwrapping operations according to the truncation phase and the virtual plane continuous phase to obtain a second phase distribution result. This module can be used to perform step S105 shown in FIG. 2 .

所述融合模块114用于将所述第一相位分布结果和所述第二相位分布结果进行相位区域融合,得到所述被测物体的展开相位及高度分布结果。该模块可用于执行图2中所示的步骤S107。The fusion module 114 is configured to perform phase region fusion of the first phase distribution result and the second phase distribution result to obtain the unwrapped phase and height distribution results of the measured object. This module can be used to perform step S107 shown in FIG. 2 .

具体地,请参阅图11,所述第一展开模块112包括第一相位级次获取子模块1121、第一展开相位获取子模块1122以及第一相位分布获取子模块1123。Specifically, referring to FIG. 11 , the first unwrapping module 112 includes a first phase order obtaining sub-module 1121 , a first unwrapping phase obtaining sub-module 1122 and a first phase distribution obtaining sub-module 1123 .

所述第一相位级次获取子模块1121用于将所述截断相位和所述参考平面展开相位进行做差处理,将差值与2π相比较得到第一相位级次。该模块可用于执行图3中所示的步骤S1031。The first phase order obtaining sub-module 1121 is configured to perform difference processing between the truncated phase and the reference plane unwrapped phase, and compare the difference with 2π to obtain the first phase order. This module can be used to perform step S1031 shown in FIG. 3 .

所述第一展开相位获取子模块1122用于根据所述第一相位级次和所述参考平面展开相位得到所述被测物体的第一展开相位。该模块可用于执行图3中所示的步骤S1033。The first unwrapped phase acquisition sub-module 1122 is configured to obtain the first unwrapped phase of the measured object according to the first phase order and the unwrapped phase of the reference plane. This module can be used to perform step S1033 shown in FIG. 3 .

所述第一相位分布获取子模块1123用于将所述第一展开相位和所述参考平面展开相位进行作差处理,得到第一相位分布结果。该模块可用于执行图3中所示的步骤S1035。The first phase distribution obtaining sub-module 1123 is configured to perform difference processing between the first unwrapped phase and the unwrapped phase of the reference plane to obtain a first phase distribution result. This module can be used to perform step S1035 shown in FIG. 3 .

具体地,请参阅图12,所述第二展开模块113包括第二相位级次获取子模块1131、第二展开相位获取子模块1132以及第二相位分布获取子模块1133。Specifically, please refer to FIG. 12 , the second unwrapping module 113 includes a second phase order obtaining sub-module 1131 , a second unwrapping phase obtaining sub-module 1132 and a second phase distribution obtaining sub-module 1133 .

所述第二相位级次获取子模块1131用于将所述截断相位和所述虚拟平面连续相位进行做差处理,将差值与2π相比较得到第二相位级次。该模块可用于执行图5中所示的步骤S1051。The second phase order obtaining sub-module 1131 is configured to perform difference processing between the truncated phase and the virtual plane continuous phase, and compare the difference with 2π to obtain the second phase order. This module can be used to perform step S1051 shown in FIG. 5 .

所述第二展开相位获取子模块1132用于根据所述第二相位级次和所述虚拟平面连续相位得到所述被测物体的第二展开相位。该模块可用于执行图5中所示的步骤S1053。The second unwrapped phase acquisition sub-module 1132 is configured to obtain the second unwrapped phase of the measured object according to the second phase order and the virtual plane continuous phase. This module can be used to perform step S1053 shown in FIG. 5 .

所述第二相位分布获取子模块1133用于将所述第二展开相位和所述参考平面展开相位进行做差处理,得到所述第二相位分布结果。该模块可用于执行图5中所示的步骤S1055。The second phase distribution acquisition sub-module 1133 is configured to perform difference processing between the second unwrapped phase and the reference plane unwrapped phase to obtain the second phase distribution result. This module can be used to perform step S1055 shown in FIG. 5 .

具体地,请参阅图13,所述融合模块114包括相位区域融合子模块1141、扣除子模块1142以及重建子模块1143。Specifically, please refer to FIG. 13 , the fusion module 114 includes a phase region fusion sub-module 1141 , a subtraction sub-module 1142 and a reconstruction sub-module 1143 .

所述相位区域融合子模块1141用于将所述第一相位分布结果和所述第二相位分布结果进行相位区域融合。该模块可用于执行图6中所示的步骤S1071。The phase region fusion sub-module 1141 is configured to perform phase region fusion on the first phase distribution result and the second phase distribution result. This module can be used to perform step S1071 shown in FIG. 6 .

所述第一扣除子模块1142用于扣除在构建所述虚拟平面连续相位时引入的相位级次,得到所述被测物体的相位分布。该模块可用于执行图6中所示的步骤S1073。The first subtraction sub-module 1142 is used to subtract the phase order introduced when constructing the continuous phase of the virtual plane to obtain the phase distribution of the measured object. This module can be used to perform step S1073 shown in FIG. 6 .

所述重建子模块1143用于根据所述被测物体的展开相位与高度之间的关系,重建所述被测物体的高度分布。该模块可用于执行图6中所示的步骤S1075。The reconstruction sub-module 1143 is configured to reconstruct the height distribution of the measured object according to the relationship between the unwrapped phase and the height of the measured object. This module can be used to perform step S1075 shown in FIG. 6 .

本实施例提供的各功能模块的具体操作过程可以参照上述方法流程图中相应步骤的描述。For the specific operation process of each functional module provided in this embodiment, reference may be made to the description of the corresponding steps in the flow chart of the above method.

为了更清楚地说明本实施例提供的相位展开方法,下面示例性地给出该方法的两个具体试验案例。In order to illustrate the phase unwrapping method provided by this embodiment more clearly, two specific test cases of the method are exemplarily given below.

第一案例first case

本案例中,被测物体是一个猫脸的模型,如图14(a)所示,得到的被测物体的截断相位如图14(b)所示,对截断相位实施相位展开操作的分解步骤如下:In this case, the measured object is a model of a cat face, as shown in Figure 14(a), and the obtained truncated phase of the measured object is shown in Figure 14(b). as follows:

a、由空间行列相位展开方法得到参考平面的参考平面展开相位φoa. The reference plane unwrapped phase φ o of the reference plane is obtained by the spatial row and column phase unwrapping method.

b、将得到的参考平面展开相位φo按照公式(6)~(8)执行第一次相位展开操作并扣除参考平面展开相位,得到第一相位分布结果,如图14(c)所示。根据虚拟平面的构建要求,得到虚拟平面连续相位为φs1=φo-2π+1,以该虚拟平面连续相位为基础,按照上述公式执行第二次相位展开操作并扣除参考平面展开相位,得到第二相位分布结果,如图14(d)所示。b. Perform the first phase unwrapping operation on the obtained reference plane unwrapped phase φ o according to formulas (6) to (8) and deduct the reference plane unwrapped phase to obtain the first phase distribution result, as shown in Figure 14(c). According to the construction requirements of the virtual plane, the continuous phase of the virtual plane is obtained as φ s1o -2π+1. Based on the continuous phase of the virtual plane, the second phase unwrapping operation is performed according to the above formula and the unwrapped phase of the reference plane is deducted to obtain The second phase distribution result is shown in Fig. 14(d).

c、在上述第一次展开操作未展开的区域相位(图14(c))在第二次相位展开操作后(图14(d))是连续的,如图14(e)所示,融合两次展开的相位分布,得到被测物体最终的相位展开分布,如图14(f)所示。c. The phase of the unexpanded region in the first unwrapping operation (Fig. 14(c)) is continuous after the second phase unwrapping operation (Fig. 14(d)), as shown in Fig. 14(e), the fusion The phase distribution of the twice unwrapping is used to obtain the final phase unwrapping distribution of the measured object, as shown in Figure 14(f).

第二案例Second case

本案例中,被测物体是一个三层叠放的塔状物体,如图15(a)所示,得到的被测物体的截断相位如图15(b)所示,对被测物体截断相位实施相位展开的分解步骤如下:In this case, the measured object is a three-layered tower-shaped object, as shown in Figure 15(a), and the obtained truncated phase of the measured object is shown in Figure 15(b). The decomposition steps of phase unwrapping are as follows:

a、由空间行列相位展开方法得到参考平面的参考平面展开相位φoa. The reference plane unwrapped phase φ o of the reference plane is obtained by the spatial row and column phase unwrapping method.

b、将得到的参考平面展开相位φo按照公式(6)~(8)执行第一次相位展开操作并扣除参考平面展开相位,得到第一相位分布结果,如图15(c)所示。根据虚拟平面的构建要求,得到虚拟平面连续相位为φs1=φo-2π+1,以该虚拟平面连续相位为基础,按照上述公式执行第二次相位展开操作并扣除参考平面展开相位,得到第二相位分布结果。b. Perform the first phase unwrapping operation on the obtained reference plane unwrapped phase φ o according to formulas (6) to (8) and deduct the reference plane unwrapped phase to obtain the first phase distribution result, as shown in Figure 15(c). According to the construction requirements of the virtual plane, the continuous phase of the virtual plane is obtained as φ s1o -2π+1. Based on the continuous phase of the virtual plane, the second phase unwrapping operation is performed according to the above formula and the unwrapped phase of the reference plane is deducted to obtain The second phase distribution result.

c、在上述第一次展开操作未展开的区域相位在第二次相位展开操作后是连续的,如图15(c)所示,融合两次展开的相位分布,得到被测物体最终的相位展开分布,如图15(d)所示。c. The phase of the unexpanded region in the above-mentioned first unwrapping operation is continuous after the second phase unwrapping operation, as shown in Figure 15(c), fuse the phase distributions of the two unwrapping to obtain the final phase of the measured object Expand the distribution, as shown in Figure 15(d).

综上所述,本发明提供的相位展开方法及系统,通过在参考平面展开相位的基础上构建虚拟平面连续相位来辅助被测表面的相位展开,进行多次分级相位展开,结合多个展开相位结果以得到最终正确的展开相位。本发明提供的相位展开方法无需标记与编码,展开速度快,且不需在二维平面内进行逐点空间相位展开,不会产生误差传递蔓延和扩散。To sum up, the phase unwrapping method and system provided by the present invention assists the phase unwrapping of the measured surface by constructing a virtual plane continuous phase on the basis of the reference plane unwrapping phase, performing multiple hierarchical phase unwrapping, and combining multiple unwrapping phases. result to get the final correct unwrapped phase. The phase unwrapping method provided by the present invention does not need marking and coding, and the unwrapping speed is fast, and it does not need to perform point-by-point spatial phase unwrapping in a two-dimensional plane, and does not generate error transmission spread and diffusion.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本发明的实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the embodiments provided in this application, it should be understood that the disclosed apparatus and method may also be implemented in other manners. The apparatus embodiments described above are merely illustrative, eg, the flowcharts and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of apparatuses, methods and computer program products according to embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.

另外,在本发明各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present invention may be integrated to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: a U disk, a removable hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk and other media that can store program codes.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention. It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.

Claims (8)

1. A phase unwrapping method applied to a virtual phase plane unwrapping device, the method comprising:
obtaining a truncation phase of the measured object according to the structured light projected to the surface of the measured object;
obtaining a reference plane through shooting, obtaining a reference plane unfolding phase, and carrying out unfolding operation according to the truncation phase and the reference plane unfolding phase to obtain a first phase distribution result;
constructing a virtual plane continuous phase, and performing unfolding operation according to the truncation phase and the virtual plane continuous phase to obtain a second phase distribution result;
performing phase region fusion on the first phase distribution result and the second phase distribution result to obtain an expansion phase and height distribution result of the measured object;
the step of performing an unwrapping operation according to the truncated phase and the reference plane unwrapped phase to obtain a first phase distribution result includes:
and performing difference processing on the truncated phase and the reference plane unwrapped phase, comparing the difference with 2 pi, and obtaining a first phase level according to the following formula:
wherein,is the truncated phase of the object to be measured, phioExpanding the phase for the reference plane, wherein K is the first phase order, and the floor function is a down-rounding function;
and calculating to obtain a first unwrapped phase of the measured object according to the first phase order and the reference plane unwrapped phase and according to the following formula:
wherein phi is1A first unwrapped phase for the object under test;
and performing difference processing on the first unwrapped phase and the reference plane unwrapped phase to obtain a first phase distribution result.
2. The phase unwrapping method according to claim 1, wherein the virtual-plane continuous phase and the reference-plane unwrapped phase satisfy the following relationship:
o-2nπ)<φs<(φo+2nπ)
wherein phi issFor the virtual plane continuous phase, phioThe phases are unwrapped for the reference plane, n being a positive integer (1,2,3, …, n).
3. The phase unwrapping method according to claim 2, wherein the step of performing an unwrapping operation based on the truncated phase and the virtual-plane continuous phase to obtain a second phase-distribution result includes:
carrying out difference processing on the truncation phase and the virtual plane continuous phase, and comparing the difference with 2 pi to obtain a second phase level;
obtaining a second expansion phase of the measured object according to the second phase level and the virtual plane continuous phase;
and carrying out difference processing on the second unwrapped phase and the reference plane unwrapped phase to obtain a second phase distribution result.
4. The phase unwrapping method according to claim 1, wherein the step of performing phase region fusion on the first phase distribution result and the second phase distribution result to obtain an unwrapped phase and height distribution result of the object to be measured includes:
performing phase region fusion on the first phase distribution result and the second phase distribution result;
deducting the phase order introduced when the virtual plane continuous phase is constructed to obtain the phase distribution of the measured object;
and reconstructing the height distribution of the measured object according to the relationship between the expansion phase and the height of the measured object.
5. A phase unfolding system is applied to a virtual phase plane unfolding device and is characterized by comprising a truncated phase acquisition module, a first unfolding module, a second unfolding module and a fusion module;
the truncation phase acquisition module is used for acquiring the truncation phase of the measured object according to the structured light projected to the surface of the measured object;
the first unfolding module is used for obtaining a reference plane through shooting, obtaining a reference plane unfolding phase, and carrying out unfolding operation according to the truncation phase and the reference plane unfolding phase to obtain a first phase distribution result;
the second unfolding module is used for constructing a virtual plane continuous phase, and carrying out unfolding operation according to the truncation phase and the virtual plane continuous phase to obtain a second phase distribution result;
the fusion module is used for carrying out phase region fusion operation on the first phase distribution result and the second phase distribution result to obtain an expansion phase and height distribution result of the object to be measured;
the first unfolding module comprises a first phase level acquisition submodule, a first unfolding phase acquisition submodule and a first phase distribution acquisition submodule;
the first phase level acquisition submodule is used for carrying out difference processing on the truncated phase and the reference plane unwrapped phase, comparing the difference with 2 pi, and obtaining a first phase level according to the following formula:
wherein,is the truncated phase of the object to be measured, phioUnwrapping phase for reference plane, K beingIn the first phase order, the floor function is a down-rounding function;
the first unwrapped phase acquisition submodule is used for calculating a first unwrapped phase of the measured object according to the first phase order and the reference plane unwrapped phase and according to the following formula:
wherein phi is1A first unwrapped phase for the object under test;
the first phase distribution obtaining submodule is used for carrying out difference processing on the first unwrapped phase and the reference plane unwrapped phase to obtain a first phase distribution result.
6. The phase unwrapping system according to claim 5, wherein the virtual-plane continuous phase and the reference-plane unwrapped phase satisfy the following relationship:
o-2nπ)<φs<(φo+2nπ)
wherein phi issFor the virtual plane continuous phase, phioThe phases are unwrapped for the reference plane, n being a positive integer (1,2,3, …, n).
7. The phase unwrapping system of claim 5, wherein the second unwrapping module includes a second phase level acquisition sub-module, a second unwrapped phase acquisition sub-module, and a second phase distribution acquisition sub-module;
the second phase level obtaining submodule is used for carrying out difference processing on the truncated phase and the virtual plane continuous phase and comparing the difference with 2 pi to obtain a second phase level;
the second unwrapped phase acquisition submodule is used for acquiring a second unwrapped phase of the measured object according to the second phase level and the virtual plane continuous phase;
and the second phase distribution acquisition submodule is used for carrying out difference processing on the second unwrapped phase and the reference plane unwrapped phase to obtain a second phase distribution result.
8. The phase unwrapping system according to claim 5, wherein the fusion module includes a phase region fusion sub-module, a subtraction sub-module, and a reconstruction sub-module;
the phase region fusion submodule is used for performing phase region fusion on the first phase distribution result and the second phase distribution result;
the deduction submodule is used for deducting the phase order introduced when the virtual plane continuous phase is constructed to obtain the phase distribution of the measured object;
and the reconstruction submodule is used for reconstructing the height distribution of the measured object according to the relationship between the expansion phase and the height of the measured object.
CN201710029705.XA 2017-01-16 2017-01-16 A kind of phase developing method and system Active CN106802137B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710029705.XA CN106802137B (en) 2017-01-16 2017-01-16 A kind of phase developing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710029705.XA CN106802137B (en) 2017-01-16 2017-01-16 A kind of phase developing method and system

Publications (2)

Publication Number Publication Date
CN106802137A CN106802137A (en) 2017-06-06
CN106802137B true CN106802137B (en) 2019-04-02

Family

ID=58985536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710029705.XA Active CN106802137B (en) 2017-01-16 2017-01-16 A kind of phase developing method and system

Country Status (1)

Country Link
CN (1) CN106802137B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108364268B (en) * 2018-02-26 2020-05-29 山东师范大学 Method and device for phase recovery of single-frame fringe pattern
CN109211140B (en) * 2018-08-07 2020-12-08 广东奥普特科技股份有限公司 A Structured Light Phase Unwrapping Method Based on Mathematical Analysis
CN109307483B (en) * 2018-11-20 2020-05-19 西南石油大学 Phase unwrapping method based on geometric constraint of structured light system
CN110533621A (en) * 2019-08-09 2019-12-03 西安交通大学 A Phase Recovery Method of Light Intensity Transmission Equation Based on Image Fusion
CN111238398B (en) * 2020-03-02 2021-06-04 四川大学 A Phase Shift Error Detection Method Based on Probability Distribution Function
CN111307066B (en) * 2020-03-09 2021-07-06 四川大学 A Phase Unwrapping Method for Interval Processing
CN112146596B (en) * 2020-08-31 2022-01-28 南昌航空大学 Optimal quantization phase coding three-dimensional measurement method
CN113029042B (en) * 2021-05-25 2021-08-03 四川大学 Dynamic measuring device and method for surface morphology of high-temperature molten metal
US11629952B2 (en) * 2021-06-02 2023-04-18 Kla Corporation Detection aided two-stage phase unwrapping on pattern wafer geometry measurement
CN114119596B (en) * 2021-12-08 2025-08-12 中国工程物理研究院激光聚变研究中心 Multi-phase image arbitrary reflecting surface velocity interferometer data processing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102628676A (en) * 2012-01-19 2012-08-08 东南大学 Adaptive window Fourier phase extraction method in optical three-dimensional measurement
CN103376071A (en) * 2012-04-20 2013-10-30 德律科技股份有限公司 Three-dimensional measurement system and three-dimensional measurement method
CN103697815A (en) * 2014-01-15 2014-04-02 西安电子科技大学 Method for acquiring three-dimensional information of frequency mixing structured light based on phase encoding
CN205607342U (en) * 2015-12-27 2016-09-28 河北工业大学 Three -dimensional appearance measuring device of reflection of light object based on stripe reflection method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10061028B2 (en) * 2013-09-05 2018-08-28 Texas Instruments Incorporated Time-of-flight (TOF) assisted structured light imaging
US20140078264A1 (en) * 2013-12-06 2014-03-20 Iowa State University Research Foundation, Inc. Absolute three-dimensional shape measurement using coded fringe patterns without phase unwrapping or projector calibration

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102628676A (en) * 2012-01-19 2012-08-08 东南大学 Adaptive window Fourier phase extraction method in optical three-dimensional measurement
CN103376071A (en) * 2012-04-20 2013-10-30 德律科技股份有限公司 Three-dimensional measurement system and three-dimensional measurement method
CN103697815A (en) * 2014-01-15 2014-04-02 西安电子科技大学 Method for acquiring three-dimensional information of frequency mixing structured light based on phase encoding
CN205607342U (en) * 2015-12-27 2016-09-28 河北工业大学 Three -dimensional appearance measuring device of reflection of light object based on stripe reflection method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《相位测量轮廓术中三维坐标校准新方法》;宋万忠 等;《光学学报》;20030331;第23卷(第3期);第272-277段

Also Published As

Publication number Publication date
CN106802137A (en) 2017-06-06

Similar Documents

Publication Publication Date Title
CN106802137B (en) A kind of phase developing method and system
US11166004B2 (en) Three-dimensional computational imaging method and apparatus based on single-pixel sensor, and non-transitory computer-readable storage medium
US9879985B2 (en) Simultaneous multiple view surface geometry acquisition using structured light and mirrors
Zhang Phase unwrapping error reduction framework for a multiple-wavelength phase-shifting algorithm
Huang et al. Trapezoidal phase-shifting method for three-dimensional shape measurement
Coggrave et al. High-speed surface profilometer based on a spatial light modulator and pipeline image processor
Jia et al. Two-step triangular-pattern phase-shifting method for three-dimensional object-shape measurement
Jia et al. Comparison of linear and nonlinear calibration methods for phase-measuring profilometry
US11741660B2 (en) Structured light three-dimensional measurement device and method based on defocus-degree-based unwrapping
Wu et al. A general phase ambiguity suppression algorithm combining geometric constraints and temporal phase unwrapping
Lv et al. An improved phase-coding method for absolute phase retrieval based on the path-following algorithm
Song et al. Phase unwrapping method combining dual-frequency heterodyne with dual complementary phase encoding
Wei et al. Reconstruction of moving object with single fringe pattern based on phase shifting profilometry
Spagnolo et al. Fringe projection profilometry for recovering 2.5 D shape of ancient coins
Lu et al. New approach to improve the performance of fringe pattern profilometry using multiple triangular patterns for the measurement of objects in motion
Wang et al. Single-frame grating pattern phase recovery for high dynamic range 3d measurement based on deep learning
US7280187B1 (en) Method for resolving phase in electronic speckle interferometry
Muñoz et al. Comparison of several calibration methods for fringe projection profilometry
Yin et al. Bi-frequency temporal phase unwrapping using deep learning
Bergström et al. Shape verification using dual-wavelength holographic interferometry
Leong-Hoï et al. High speed implementation of a three-dimensional shape profiler with submillimeter precision using a digital light processing device and a new efficient algorithm for absolute phase retrieval
Flores et al. Colored slightly off-axis method for self-occluding shading in projection profilometry
Chen et al. Using wrapped phases for light-field three-dimensional imaging
Ullah et al. A low-cost three-dimensional reconstruction and monitoring system using digital fringe projection
CN118670254B (en) A three-dimensional measurement method, device and system based on multi-scale parallel single pixel

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant