球型相機影像自動拼接技術研究
A Study on Automatic Spherical Camera Image Stitching
摘要
在虛擬實境與擴增實境中全景影像為一種重要的技術。傳統上,使用普通相機拍攝多張照片進行拼接,此技術已發展多年。近年來,隨著全景相機的發展,魚眼鏡頭被越來越廣泛的使用。在傳統相機中廣泛使用的針孔相機模型在視野範圍逼近180°時,投影影像的尺寸將會增加到無限大。而魚眼鏡頭可以取得更寬視野範圍的影像資訊,逼近甚至大於180°。但是,魚眼鏡頭會產生嚴重的非線性變形。
在本論文中,我們設計並實現幾種自動拼接技術,利用兩個背靠背的魚眼相機取得一組照片拼接並投影回3-D球空間。首先,我們採用校正軟體OCamCalib進行校正,獲取魚眼鏡頭的參數,將魚眼影像還原校正至3-D單位球上。接著,我們研究兩種拼接全景影像的方法:(1)基於相似梯度曲線,(2)基於相似邊緣。我們使用兩種將球形投影至平面的投影方法來測試他們,其中一種為等距柱狀投影,另一種為分段球體投影。最後,我們將拼接完的全景影像投影到3-D球空間。在本論文中,我們拍攝了幾組在不同環境下的實驗照片,並展示三種演算法下的實驗結果。三種演算法分別為:使用等距柱狀投影和使用分段球體投影進行基於相似邊緣方法,與使用等距柱狀投影進行基於相似梯度曲線方法。通常,拼接影像使用分段球體投影的影像品質優於使用等距柱狀投影,並在使用分段球體投影進行基於相似邊緣拼接方法似乎會有更好結果。
在本論文中,我們設計並實現幾種自動拼接技術,利用兩個背靠背的魚眼相機取得一組照片拼接並投影回3-D球空間。首先,我們採用校正軟體OCamCalib進行校正,獲取魚眼鏡頭的參數,將魚眼影像還原校正至3-D單位球上。接著,我們研究兩種拼接全景影像的方法:(1)基於相似梯度曲線,(2)基於相似邊緣。我們使用兩種將球形投影至平面的投影方法來測試他們,其中一種為等距柱狀投影,另一種為分段球體投影。最後,我們將拼接完的全景影像投影到3-D球空間。在本論文中,我們拍攝了幾組在不同環境下的實驗照片,並展示三種演算法下的實驗結果。三種演算法分別為:使用等距柱狀投影和使用分段球體投影進行基於相似邊緣方法,與使用等距柱狀投影進行基於相似梯度曲線方法。通常,拼接影像使用分段球體投影的影像品質優於使用等距柱狀投影,並在使用分段球體投影進行基於相似邊緣拼接方法似乎會有更好結果。
The panoramic imaging is an important technique in Virtual Reality (VR) and Augmented Reality (AR). Traditionally, this topic has been studied for many years to take multiple photos using a normal camera and stitch these photos together. In recent years, with the development omnidirectional camera, the fisheye lens is being used more and more widely. The Pinhole Camera Model, widely used in modeling the traditional cameras, will increase the size of the projected image to infinity when the field of view (FOV) approaches 180°. But the fisheye lens can capture an image of a very wide field of view, close to or even greater than 180°. However, the fisheye lens causes severe nonlinear distortion.
In this thesis, we design and implement several automatic stitch techniques, which stitch a pair of images captured by two back-to-back fisheye cameras and can be projected to the 3-D sphere space. First, we measure the parameters of fisheye lens by using the calibration software OCamCalib and then we project the fisheye images to the 3-D unit sphere. Next, we study two methods of stitching panoramic images: (1) a method based similar-curve, and (2) a method based similar-edge. We tested them on two sphere-to-plane projections. One is Equirectangular Projection (ERP), and the other one is Segmented Sphere Projection (SSP). At the end, we project the stitched panoramic image to the 3-D ball sphere space. In this thesis, we took several sets of photos in different environments and show the experimental results of three algorithms: the similar-edge based method in ERP and in SSP and the similar-curve based method in ERP. Often, stitching in SSP produces better quality stitched images than stitching in ERP. And the stitching method based on similar-edge seems to produce better results in SSP.
In this thesis, we design and implement several automatic stitch techniques, which stitch a pair of images captured by two back-to-back fisheye cameras and can be projected to the 3-D sphere space. First, we measure the parameters of fisheye lens by using the calibration software OCamCalib and then we project the fisheye images to the 3-D unit sphere. Next, we study two methods of stitching panoramic images: (1) a method based similar-curve, and (2) a method based similar-edge. We tested them on two sphere-to-plane projections. One is Equirectangular Projection (ERP), and the other one is Segmented Sphere Projection (SSP). At the end, we project the stitched panoramic image to the 3-D ball sphere space. In this thesis, we took several sets of photos in different environments and show the experimental results of three algorithms: the similar-edge based method in ERP and in SSP and the similar-curve based method in ERP. Often, stitching in SSP produces better quality stitched images than stitching in ERP. And the stitching method based on similar-edge seems to produce better results in SSP.