鍾添東臺灣大學:機械工程學研究所徐偉盛Syu, Wei-ShengWei-ShengSyu2007-11-282018-06-282007-11-282018-06-282006http://ntur.lib.ntu.edu.tw//handle/246246/61555本論文提出一種N步彩色相位移法用以量測物體的三維外形。首先設計彩色條紋圖樣,並使用投影機投射至物體表面。使用兩台數位相機拍攝物體表面上的扭曲條紋圖樣,並從拍攝的彩色影像中獲得每個像素之RGB亮度值。以得到的RGB亮度值,經由相位移法計算所有像素的相位值。同時以相位誤差查詢表、紅綠藍查詢表修正相位誤差。然後使用相位重建法將相位值轉換為物體表面的高度值。相位重建的步驟包含分支切割線演算法與影像品質導引演算法,以這些演算法改善外形重建之品質。再以資料對位與整合統一從兩台相機獲得的三維座標資料點。最後,本文發展一套結合相位移步驟、相位展開步驟、資料對位、資料整合的整合程式。利用此程式,測試數個量測範例。由量測成果可證實提出之方法可以有效地降低量測誤差。This thesis proposes a N-step color phase-shifting method for measuring 3D shape of objects. Firstly, color fringe patterns are designed and projected onto the object surface by a projector. Distorted fringe patterns on the object surface are captured by two digital cameras, and intensities of each pixel in the red, green and blue channels are obtained from the captured color images. Phase values of all pixels are calculated by the phase-shifting method from the obtained RGB intensities. At the same time, phase errors are also corrected by using a phase error look-up-table and a RGB look-up-table. Then, the phase-unwrapping technique is applied to convert phase values to the height of the object surface. In the phase-unwrapping process, both the branch cut algorithm and the quality-guided algorithm are included to improve the quality of shape reconstruction. Data registration and integration are performed to unify 3D data points obtained from two cameras. Finally, an integrated program is developed by combing phase-shifting process, phase-unwrapping process, data registration, and data integration. With the developed program, several measurement examples are investigated. From the measurement results, it shows that the proposed method can reduce measurement errors effectively.中文摘要 I 英文摘要 II 目錄 III 圖目錄 VI 表目錄 IX 符號說明 X 第一章 緒論 1 1.1 研究背景 1 1.2 文獻回顧 3 1.3 研究動機與目的 8 1.4 研究方法 8 1.5 論文大綱 9 第二章 投射條紋法研究原理 11 2.1 投射條紋與高度之關係 11 2.2 結構光法 14 2.3 相位移法 15 2.3.1 相位移法介紹 16 2.3.2 投射黑白條紋進行相位移法 17 2.3.3 投射彩色條紋進行相位移法 19 2.4 相位誤差補償 21 第三章 投射彩色條紋進行N步相位移法 25 3.1 投射彩色條紋進行N步相位移法 25 3.1.1 投射彩色條紋進行六步相位移法 27 3.1.2 投射彩色條紋進行九步相位移法 27 3.1.3 投射彩色條紋進行十二步相位移法 28 3.1.4 投射彩色條紋進行十五步相位移法 29 3.2 相位誤差分析 31 第四章 重建三維外形之步驟 35 4.1 彩色結構光之相位誤差修正 35 4.1.1 紅綠藍查詢表 35 4.1.2 不平衡效應補償 37 4.1.3 耦合效應補償 38 4.2 相位重建 40 4.2.1 相位重建演算法 40 4.2.2 分支切割線演算法 42 4.2.3 影像品質導引演算法 46 4.3 相位轉換高度 47 4.4 資料點對位與整合 48 4.4.1 資料點對位 49 4.4.2 資料點整合 53 第五章 實作成果 57 5.1 系統配備 57 5.2 程式架構與流程 58 5.3 量測解析度 59 5.4 量測精確度 60 5.5 量測成果 62 5.5.1 白色物體之量測成果 64 5.5.2 彩色物體之量測成果 67 5.5.3 人體外形之量測成果 69 第六章 結論與建議 75 6.1 結論 75 6.2 建議 76 參考文獻 77 附錄A Color Fringe Projection System (CFPS) 程式碼及使用說明 85 A.1 程式安裝執行說明 85 A.2 程式碼檔案介紹 85 A.2.1 核心程式碼(位於CFPS) 85 A.2.2 系統設定檔(位於CFPSParaSet) 86 A.2.3 外部引用程式碼(位於CFPS) 86 A.2.4 外部引用DLL檔與EXE檔(位於CFPSDebug) 87 A.2.5 其他檔案(位於CFPS) 87 A.3 系統主程式介面與程式碼說明 87 A.3.1 主程式介面 87 A.3.2 影像區(Image)介面說明 88 A.3.3 主要功能區(Main Function)介面說明 89 A.3.4 執行進度區(Progress)介面說明 90 A.3.5 訊息區(Message)介面說明 90 A.3.6 條紋與校正控制區(Fringe & Correction Control)介面說明 90 A.3.7 重建選項區(Unwrapping Options)說明 92 A.3.8 影像擷取區(Image Capture)說明 92 A.3.9 修正補償區(Compensation)說明 93 A.3.10 分析區(Analysis)說明 94 A.3.11 其他功能說明 94 A.4 系統類別與變數說明 95 A.4.1 類別說明(位於CFPSDataProcess.h) 95 A.4.2 變數說明(位於CFPSParameters.h) 95 A.4.3 總體變數說明(位於CFPSstdafx.h) 95 A.5 系統其餘函式說明 96 A.5.1 餘弦波形函式說明(位於CFPSDialogs.cpp) 96 A.5.2 主程式附屬函式說明(位於CFPSCFPSDlg.cpp) 96 A.5.3 數值方法函式說明(位於CFPSNumMethod.cpp) 97 A.6 程式操作說明 98 A.6.1 拍攝影像操作說明 98 A.6.2 三維外形重建操作說明 99 附錄B 資料點對位與整合操作說明 103 B.1 程式安裝說明 103 B.1.1 基本需求 103 B.1.2 環境設定 103 B.2 程式操作說明 104 作者簡歷 10912669814 bytesapplication/pdfen-US三維外形量測相位移法投射彩色條紋相位重建法3D shape measurementphase-shifting methodcolor fringe projectionphase-unwrapping technique三維外形量測之N步彩色相位移法N-step color phase-shifting method for 3D shape measurementthesishttp://ntur.lib.ntu.edu.tw/bitstream/246246/61555/1/ntu-95-R93522601-1.pdf