Movatterモバイル変換


[0]ホーム

URL:


CN109141291A - A kind of fast phase unwrapping algorithm - Google Patents

A kind of fast phase unwrapping algorithm
Download PDF

Info

Publication number
CN109141291A
CN109141291ACN201811112695.7ACN201811112695ACN109141291ACN 109141291 ACN109141291 ACN 109141291ACN 201811112695 ACN201811112695 ACN 201811112695ACN 109141291 ACN109141291 ACN 109141291A
Authority
CN
China
Prior art keywords
phase
formula
algorithm
fringe order
solving
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.)
Pending
Application number
CN201811112695.7A
Other languages
Chinese (zh)
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.)
Nanchang Hangkong University
Original Assignee
Nanchang Hangkong 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 Nanchang Hangkong UniversityfiledCriticalNanchang Hangkong University
Priority to CN201811112695.7ApriorityCriticalpatent/CN109141291A/en
Publication of CN109141291ApublicationCriticalpatent/CN109141291A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种快速相位解包裹算法,由N步相移算法、制作Mask、求解条纹级次、相位解包裹四大关键部分组成。具体包括:(1)利用N步相移算法求解包裹相位;(2)利用N幅正弦条纹图制作Mask;(3)利用包裹相位和连通域标记算法求解条纹级次;(4)根据条纹级次进行相位解包裹获得用于三维重建的绝对相位。本发明提出的算法只需投影N幅正弦相移条纹图,就能进行相位求解与解包裹,其相位恢复效果与传统方法相当,但在计算速度上有极大优势,适合有快速三维测量需求的应用领域。

The invention discloses a fast phase unwrapping algorithm, which consists of four key parts: N-step phase shift algorithm, making Mask, solving fringe order and phase unwrapping. Specifically, it includes: (1) using the N-step phase shift algorithm to solve the wrapping phase; (2) using N sinusoidal fringe patterns to make a Mask; (3) using the wrapping phase and connected domain labeling algorithm to solve the fringe order; (4) according to the fringe level Phase unwrapping is performed twice to obtain the absolute phase for 3D reconstruction. The algorithm proposed by the invention only needs to project N sinusoidal phase-shift fringe patterns, and then the phase solution and unwrapping can be carried out. field of application.

Description

A kind of fast phase unwrapping algorithm
Technical field
The invention belongs to optical three-dimensional measurement technical fields, and in particular to a kind of fast phase unwrapping algorithm.
Background technique
Phase- un- wrapping is one of the key link of fringe projection three-dimensional measurement technology, how effectively and rapidly to carry out phasePosition unpacking is the emphasis research topic of this field researcher.By analyzing domestic and international present Research and developmentsResearch, Phase- un- wrapping technology includes time domain and airspace unwrapping algorithm at present.Airspace unpacks package method and is also easy to produce pixel errorTransmitting is easy failure when measuring complicated face shape, so time phase unpacks package method and more often uses.Time domain unpacking can be compared withBenefit manages Surfaces of Unusual Shape, but there is the problems such as acquisition image width number is excessive, data volume is big and the processing time is long, and is mostly static surveyAmount.Therefore, the method for how carrying out Phase- un- wrapping with less projected fringe frame number, becomes the breach of this field.
The present invention proposes a kind of fast phase unwrapping algorithm, and the method need to only project N width sine phase shift bar graph, energyPhase solution and unpacking are carried out, phase recovery effect is suitable with conventional method, but has great advantage in calculating speed, fitsClose the application field for having quick three-dimensional measurement demand.
Summary of the invention
The purpose of the present invention is to provide a kind of fast phase unwrapping algorithm, the method need to only project N width sine phase shiftBar graph just can be carried out phase solution and unpacking, and phase recovery effect is suitable with conventional method, but has in calculating speedGreat advantage is suitble to the application field for having quick three-dimensional measurement demand.
To achieve the goals above, the invention adopts the following technical scheme: a kind of fast phase unwrapping algorithm, the partyMethod includes the following steps: that the N width sine phase shift bar graph that computer generates successively is projected to measured object body surface with projector by (1)Face is acquired every width projected image with camera;(2) phase shift algorithm is walked using N to collected N width sine phase shift bar graphSolve wrapped phase;(3) Mask is made using N width sine streak figure;(4) it is asked using wrapped phase and connected component labeling algorithmSolve fringe order;(5) absolute phase that Phase- un- wrapping acquisition is used for three-dimensional reconstruction is carried out according to fringe order.
Step 1: computer N width sine phase shift bar graph generated is successively projected to measured object body surface with projectorFace is acquired every width projected image with camera, obtains N width by the modulated bar graph of object under test, light distribution is such asUnder:
In formula (1), Ik(x, y) is the light intensity that pixel coordinate is (x, y) in the sinusoidal phase shift bar graph of camera acquisition, I'(x, y) is average gray, and I " (x, y) is streak amplitude,For object wrapped phase to be asked,For phase shift size;
Step 2: N width sine phase shift bar graph collected to step 1 solves package phase using N step phase shift algorithmPosition, shown in method for solving such as formula (2):
Step 3: production Mask, N width sine phase shift bar graph collected to step 1 camera first are summed, are takenAverage gray is calculated using formula (3) in average value:
Then average gray figure done into binary image processing using formula (4), obtain for divide object phase range,Eliminate the Mask of background;
Imask(x, y)=im2bw [I'(x, y)] (4)
Step 4: fringe order K is solved, be limited in by the wrapped phase that formula (2) arctan function solves [-π, π], firstly, we press formula (5) respectively to wrapped phase and formula (6) carries out positive and negative binary conversion treatment twice, respectively obtainTwo opposite binarization resultsWith
Then, by the result after above-mentioned binaryzationWithRespectively with Mask convolution, knot after obtaining convolutionFruitWithAs shown in formula (7) and formula (8):
Then, fringe order is determined using connected component labeling algorithm;We use MATLAB image processing toolboxBwlabel function marks respectivelyWithThe connected domain of image, the function are substantially to mark two-dimentional two-valueConnected domain in image;The first step is first marked with bwlabel functionIt can be obtained by first initial connected domainMark value Kright(x, y), it corresponds to the right half part of each fringe order, left-half zero, as shown in formula (9):
Second step is equally marked with bwlabel functionIt can be obtained by second initial connected component labelingValue Kleft(x, y), it corresponds to the left-half of each fringe order, right half part zero, as shown in formula (10):
Obtain the two initial markers values, so that it may using formula (11), by the two values, corresponding be added merges pixel-by-pixel,Complete fringe order is calculated;
K (x, y)=Kright(x,y)+Kleft(x,y) (11)
Step 5: absolute phase solves, once acquiring fringe order K, the absolute phase Φ (x, y) of object can pass throughFormula (12) acquires:
The invention has the advantages that (1) present invention uses phase shift method, measurement result is rung smaller, strong robustness by environment shadow;And as a result accurately error propagation directly will not be generated using wrapped phase solution fringe order;(2) present invention only needs N width sinusoidalPhase shift bar graph just can be carried out phase solution and unpacking, and phase recovery effect is suitable with conventional method;(3) present invention meterCalculation speed is fast, has potential application prospect and practical value in the quick of dynamic object, real-time three-dimensional measurement.
Detailed description of the invention
Fig. 1 is three-dimension measuring system schematic diagram of the invention.It is made of projector, camera, computer etc..Projector is successivelyN width sine phase shift bar graph is projected, camera is shot in other direction by the modulated deforming stripe image of object.Projector and phaseThe optical axis of machine intersects at the point of the O in plane, and projector and camera are sustained height, and the distance between they are d, they arrive referenceThe distance of plane is L.The height calculation formula of testee are as follows:
Wherein: f is the phase shift fringe frequency in reference planes,It is corresponding for body surface image and reference planes imageThe continuous phase potential difference of point.Parameter L, d and f are obtained by calibration.
Fig. 2 is execution flow chart of the invention.
Fig. 3 is in the embodiment of the present invention, with camera acquisition by the modulated sinusoidal phase shift stripe pattern of object, wherein scheming3 (a) be bar graph I1, Fig. 3 (b) is bar graph I2, Fig. 3 (c) is bar graph I3
Fig. 4 is the calculated result of step 2 and step 3 in the embodiment of the present invention, and wherein Fig. 4 (a) is what step 2 acquiredWrapped phase, Fig. 4 (b) are the average gray figure that step 3 acquires, and Fig. 4 (c) is the Mask that step 3 acquires.
Fig. 5 is the calculated result of step 4 and step 5 in the embodiment of the present invention, wherein Fig. 5 (a) and Fig. 5 (b) is respectivelyIt is acquired for step 4WithFig. 5 (c) and Fig. 5 (d) is respectively the K that step 4 acquiresright(x,y)And Kleft(x, y), Fig. 5 (e) are the fringe order that step 4 acquires, and Fig. 5 (f) is the object absolute phase that step 5 acquires.
Fig. 6 is the final measurement in the embodiment of the present invention.
Specific embodiment
It is readily appreciated that, technical solution according to the present invention, in the case where not changing connotation of the invention, this fieldThose skilled in the art can imagine the present invention be used for three-dimensional measurement numerous embodiments.Therefore, embodiment party in detail belowFormula and attached drawing are only the exemplary illustrations to technical solution of the present invention, and are not to be construed as whole of the invention or are considered as pairThe limitation or restriction of technical solution of the present invention.Example of the invention is described in further detail below in conjunction with Detailed description of the invention, butThis example is not intended to restrict the invention, all using similar structure and its similar variation of the invention, should all be included in the present inventionProtection scope.
In conjunction with Fig. 2 execution flow chart, a kind of fast phase unwrapping algorithm of the present invention, steps are as follows:
Step 1: computer N width sine phase shift bar graph generated is successively projected to measured object body surface with projectorFace is acquired every width projected image with camera, obtains N width by the modulated bar graph of object under test, light distribution is such asUnder:
In formula (1), Ik(x, y) is the light intensity that pixel coordinate is (x, y) in the sinusoidal phase shift bar graph of camera acquisition,In, I'(x, y) it is average gray, I " (x, y) is streak amplitude,For object wrapped phase to be asked,For phase shift size;
Step 2: N width sine phase shift bar graph collected to step 1 solves package phase using N step phase shift algorithmPosition, shown in method for solving such as formula (2):
Step 3: production Mask, N width sine phase shift bar graph collected to step 1 camera first are summed, are takenAverage gray is calculated using formula (3) in average value:
Then average gray figure done into binary image processing using formula (4), obtain for divide object phase range,Eliminate the Mask of background;
Imask(x, y)=im2bw [I'(x, y)] (4)
Step 4: fringe order K is solved, be limited in by the wrapped phase that formula (2) arctan function solves [-π, π], firstly, we press formula (5) respectively to wrapped phase and formula (6) carries out positive and negative binary conversion treatment twice, respectively obtainTwo opposite binarization resultsWith
Then, by the result after above-mentioned binaryzationWithRespectively with Mask convolution, knot after obtaining convolutionFruitWithAs shown in formula (7) and formula (8):
Then, fringe order is determined using connected component labeling algorithm;We use MATLAB image processing toolboxBwlabel function marks respectivelyWithThe connected domain of image, the function are substantially to mark two-dimentional two-valueConnected domain in image;The first step is first marked with bwlabel functionIt can be obtained by first initial connected domainMark value Kright(x, y), it corresponds to the right half part of each fringe order, left-half zero, as shown in formula (9):
Second step is equally marked with bwlabel functionIt can be obtained by second initial connected component labelingValue Kleft(x, y), it corresponds to the left-half of each fringe order, right half part zero, as shown in formula (10):
Obtain the two initial markers values, so that it may using formula (11), by the two values, corresponding be added merges pixel-by-pixel,Complete fringe order is calculated;
K (x, y)=Kright(x,y)+Kleft(x,y) (11)
Step 5: absolute phase solves, once acquiring fringe order K, the absolute phase Φ (x, y) of object can pass throughFormula (12) acquires:
Effect of the present invention can be further illustrated by following instance (as N=3):
Firstly, computer three width sine phase shift bar graph generated is successively projected to measured object body surface using projectorFace, camera are successively acquired by the modulated stripe pattern of object.Wherein, Fig. 3 (a) is bar graph I1, Fig. 3 (b) is bar graph I2,Fig. 3 (c) is bar graph I3
Then, it is calculated according to step 2 and step 3, obtains calculated result.Wherein, Fig. 4 (a) acquires for step 2Wrapped phase, Fig. 4 (b) is the average gray figure that acquires of step 3, and Fig. 4 (c) is the Mask that step 3 acquires.
Finally, being calculated according to step 4 and step 5, calculated result is obtained.Wherein, Fig. 5 (a) and Fig. 5 (b) differenceIt is acquired for step 4WithFig. 5 (c) and Fig. 5 (d) is respectively the K that step 4 acquiresright(x, y) andKleft(x, y), Fig. 5 (e) are the fringe order that step 4 acquires, and Fig. 5 (f) is the object absolute phase that step 5 acquires.
Fig. 6 is the final measurement in the embodiment of the present invention.

Claims (6)

CN201811112695.7A2018-09-252018-09-25A kind of fast phase unwrapping algorithmPendingCN109141291A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201811112695.7ACN109141291A (en)2018-09-252018-09-25A kind of fast phase unwrapping algorithm

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201811112695.7ACN109141291A (en)2018-09-252018-09-25A kind of fast phase unwrapping algorithm

Publications (1)

Publication NumberPublication Date
CN109141291Atrue CN109141291A (en)2019-01-04

Family

ID=64823477

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201811112695.7APendingCN109141291A (en)2018-09-252018-09-25A kind of fast phase unwrapping algorithm

Country Status (1)

CountryLink
CN (1)CN109141291A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110440714A (en)*2019-09-052019-11-12南昌航空大学A kind of phase unwrapping package method based on multifrequency and binary system striped
CN110686652A (en)*2019-09-162020-01-14武汉科技大学 A depth measurement method based on the combination of deep learning and structured light
CN111524173A (en)*2020-04-012020-08-11中国科学技术大学Rapid large-range phase unwrapping method based on double reference planes
CN111947600A (en)*2020-07-242020-11-17南京理工大学 Robust Stereo Phase Unwrapping Method Based on Phase Order Cost Filtering
CN113048914A (en)*2021-04-192021-06-29中国科学技术大学Phase unwrapping method and device
CN113155056A (en)*2021-02-082021-07-23北京朗视仪器股份有限公司Rapid three-dimensional measurement method based on sinusoidal stripe and multi-gray-scale stripe projection
CN113358064A (en)*2021-06-092021-09-07西安交通大学Phase unwrapping method and device for optical dynamic three-dimensional measurement
CN113375600A (en)*2021-07-152021-09-10河北工业大学 A three-dimensional measurement method, device and electronic equipment
CN114234850A (en)*2021-12-202022-03-25广东工业大学Three-dimensional measurement method for modulation order phase at cycle edge
CN115950378A (en)*2023-03-102023-04-11南京信息工程大学Quick measuring method based on binary stripes
CN117073578A (en)*2023-05-312023-11-17天津大学Active projection nonlinear gamma correction method for fringe projection profilometry
CN119146888A (en)*2024-11-132024-12-17浙江大学Flatness interference detection method for discontinuous surface of semiconductor sucker

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103337071A (en)*2013-06-192013-10-02北京理工大学Device and method for structure-reconstruction-based subcutaneous vein three-dimensional visualization
CN106324996A (en)*2015-06-152017-01-11中国科学院上海光学精密机械研究所Photoetching machine in-situ multichannel imaging quality detection apparatus and photoetching machine in-situ multichannel imaging quality detection method
US20170124706A1 (en)*2015-10-302017-05-04Toshiba Medical Systems CorporationMagnetic resonance imaging apparatus, medical image processing device, and image processing method
CN106643561A (en)*2016-09-292017-05-10微美光速资本投资管理(北京)有限公司Phase unwrapping algorithm of virtual reality system
CN106846346A (en)*2017-01-232017-06-13天津大学Sequence C T image pelvis profile rapid extracting methods based on key frame marker
CN108534714A (en)*2018-03-092018-09-14南昌航空大学Based on sinusoidal and binary system fringe projection quick three-dimensional measurement method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103337071A (en)*2013-06-192013-10-02北京理工大学Device and method for structure-reconstruction-based subcutaneous vein three-dimensional visualization
CN106324996A (en)*2015-06-152017-01-11中国科学院上海光学精密机械研究所Photoetching machine in-situ multichannel imaging quality detection apparatus and photoetching machine in-situ multichannel imaging quality detection method
US20170124706A1 (en)*2015-10-302017-05-04Toshiba Medical Systems CorporationMagnetic resonance imaging apparatus, medical image processing device, and image processing method
CN106643561A (en)*2016-09-292017-05-10微美光速资本投资管理(北京)有限公司Phase unwrapping algorithm of virtual reality system
CN106846346A (en)*2017-01-232017-06-13天津大学Sequence C T image pelvis profile rapid extracting methods based on key frame marker
CN108534714A (en)*2018-03-092018-09-14南昌航空大学Based on sinusoidal and binary system fringe projection quick three-dimensional measurement method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王霖: "用于三维测量的快速相位解包裹算法", 《应用光学》*

Cited By (18)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110440714A (en)*2019-09-052019-11-12南昌航空大学A kind of phase unwrapping package method based on multifrequency and binary system striped
CN110686652A (en)*2019-09-162020-01-14武汉科技大学 A depth measurement method based on the combination of deep learning and structured light
CN110686652B (en)*2019-09-162021-07-06武汉科技大学 A depth measurement method based on the combination of deep learning and structured light
CN111524173B (en)*2020-04-012022-09-06中国科学技术大学 A fast large-scale phase unwrapping method based on dual reference planes
CN111524173A (en)*2020-04-012020-08-11中国科学技术大学Rapid large-range phase unwrapping method based on double reference planes
CN111947600A (en)*2020-07-242020-11-17南京理工大学 Robust Stereo Phase Unwrapping Method Based on Phase Order Cost Filtering
CN113155056A (en)*2021-02-082021-07-23北京朗视仪器股份有限公司Rapid three-dimensional measurement method based on sinusoidal stripe and multi-gray-scale stripe projection
CN113048914A (en)*2021-04-192021-06-29中国科学技术大学Phase unwrapping method and device
CN113048914B (en)*2021-04-192022-04-19中国科学技术大学 Phase unwrapping method and device
CN113358064A (en)*2021-06-092021-09-07西安交通大学Phase unwrapping method and device for optical dynamic three-dimensional measurement
CN113375600A (en)*2021-07-152021-09-10河北工业大学 A three-dimensional measurement method, device and electronic equipment
CN114234850A (en)*2021-12-202022-03-25广东工业大学Three-dimensional measurement method for modulation order phase at cycle edge
CN114234850B (en)*2021-12-202022-07-08广东工业大学Three-dimensional measurement method for modulation order phase at cycle edge
CN115950378A (en)*2023-03-102023-04-11南京信息工程大学Quick measuring method based on binary stripes
CN117073578A (en)*2023-05-312023-11-17天津大学Active projection nonlinear gamma correction method for fringe projection profilometry
CN117073578B (en)*2023-05-312024-03-15天津大学Active projection nonlinear Gamma correction method for fringe projection profilometry
CN119146888A (en)*2024-11-132024-12-17浙江大学Flatness interference detection method for discontinuous surface of semiconductor sucker
CN119146888B (en)*2024-11-132025-02-25浙江大学 A method for interferometric detection of the flatness of a non-continuous surface of a semiconductor chuck

Similar Documents

PublicationPublication DateTitle
CN109141291A (en)A kind of fast phase unwrapping algorithm
CN108534714B (en)Based on sinusoidal and binary system fringe projection quick three-dimensional measurement method
CN104457614B (en) Three-dimensional measurement method of fringe reflection based on binary fringe defocus
CN110645919A (en)Structured light three-dimensional measurement method based on airspace binary coding
CN103697815B (en)Mixing structural light three-dimensional information getting method based on phase code
CN110174079B (en) A three-dimensional reconstruction method based on four-step phase-shift coding surface structured light
CN105300317B (en)Based on sinusoidal and triangular wave fringe projection method for three-dimensional measurement
CN103575237A (en)Phase shifting coding method
CN109307483A (en) A Phase Unwrapping Method Based on Geometric Constraints of Structured Light Systems
CN109506592A (en)Object dimensional surface shape measurement method and device based on striped light stream
CN105066904B (en)Streamline product tri-dimensional facial type detection method based on phase gradient threshold value
Zuo et al.Optimized three-step phase-shifting profilometry using the third harmonic injection.
CN111932632A (en)Phase correction method in three-dimensional reconstruction of mechanical part
CN112504165A (en)Composite stereo phase unfolding method based on bilateral filtering optimization
CN113639644A (en) A simple gamma calculation method for domain mapping for fringe projection profilometry
CN115950378B (en)Rapid measurement method based on binary stripes
CN105547190A (en)Three-dimensional shape measuring method and device based on dual-angle single-frequency fringe projection
CN104154879B (en)Non-uniform stripe segmented generation method
CN205718873U (en)A kind of double frequency phase shift tripleplane measuring instrument
CN105491315B (en)A kind of projecting apparatus gamma correction method
CN102798354B (en)Binary stripe stack based sinusoidal grating generation method
CN104697468B (en)Optical three-dimensional measuring method based on slanted phase strip encoding
CN109506590A (en)Method for rapidly positioning boundary jump phase error
CN105115446A (en)Stripe-reflection three-dimensional measurement method based on triangular-wave stripe defocusing
CN105698708A (en)Three-dimensional visual sense reconstruction method

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
WD01Invention patent application deemed withdrawn after publication

Application publication date:20190104

WD01Invention patent application deemed withdrawn after publication

[8]ページ先頭

©2009-2025 Movatter.jp