跳到主要內容

簡易檢索 / 詳目顯示

研究生: 吳少龍
Shau-lung Wu
論文名稱: 嵌入式立體視覺系統設計與硬體實作
System Design and Hardware Implementation of Embedded Stereo Vision
指導教授: 陳慶瀚
Cing-han Chen
口試委員:
學位類別: 碩士
Master
系所名稱: 資訊電機學院 - 資訊工程學系
Department of Computer Science & Information Engineering
畢業學年度: 99
語文別: 中文
論文頁數: 106
中文關鍵詞: 嵌入式系統立體視覺
外文關鍵詞: SAD, Stereo vision, embedded system, k-means
相關次數: 點閱:19下載:0
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 典型的立體視覺原理係基於雙攝影機同步取像和一系列複雜的影像處理計算,因此通常需要高速的處理器才足以因應複雜演算法的實作。低成本、計算資源受限的嵌入式系統應用,例如機器人視覺或人機互動介面系統,立體視覺則難以實現。本研究將設計了一個高性能的嵌入式立體視覺系統,我們設計了高速雙攝影機取像控制器,並且將立體視覺的演算法實現為管線化硬體電路,以滿足即時嵌入式系統應用目標。我們先以K-means演算法對影像進行色彩分群,再將影像物件分割後,透過連通物件標定得到物件資訊,接著以SAD(Sum of Absolute Difference)方法計算每個物體在左右影像的視差(disparity),最後藉由查表得到深度資訊。所有的演算法均已實作為硬體,並藉由上層的管線控制器整合為一顆平行化的立體視覺晶片。並為了驗證立體視覺晶片系統的性能,我們在FPGA實驗平台上整合了兩個取像速度為60 frames/sec,VGA解析度的攝影機,我們的立體視覺晶片在低複雜度場景下,可達每秒鐘15張立體視覺深度影像輸出的效能,此一優異的性能足以使本系統應用在各種即時嵌入式系統。


    A typical stereo vision principle is basically consisted of two parts. One is the imaging extracted using two synchronous cameras and followed by a series of complex image processing calculations. However, high-speed image processors are often required to implement complex algorithms. Thus, stereo vision is very difficult to be achieved on the embedded computing system applications, such as robot vision or human-machine interactive interface system, because of its low-cost and constrained resources. In this paper, we designed a high-performance embedded stereo vision system. To meet the goal of real-time embedded system, a high-speed dual-camera controller was created and the stereo vision algorithms were implemented as pipelined hardware circuitry. We first used K-means algorithm to group colors. Then, we obtained the information of separated objects by calculating connected components. Furthermore, for each objects, the SAD (Sum of Absolute Difference) method was applied to calculate the disparity between the objects in the left and right image. Finally, we get the depth of each object by looking up the disparity-depth lookup table. All the algorithms were implemented as hardware systems and integrated into a stereo vision chip with a pipeline controller in the top layer. In order to verify the performance of stereo vision chip system, we integrated two cameras with high speed (60 frames / sec) and VGA dpi on the FPGA platform. As a result, our stereo vision chip is able to generate images at the speed up to 15 images / sec under a low-complexity background. This outstanding performance makes our system easily be used in a variety of real-time embedded systems.

    摘要 II Abstract III 致謝 IV 目錄 V 圖目錄 VII 表目錄 X 第一章 1 緒論 1 1.1研究背景與動機 1 1.2 研究目的 2 1.3 論文架構 2 第二章 4 立體視覺原理與演算法 4 2.1 立體視覺原理 4 2.2 影像切割技術 7 2.2 連通物件標定 11 2.3 立體匹配 13 第三章 16 嵌入式立體視覺系統設計 16 3.1 雙攝影機取像控制器 17 3.2 影像前處理 34 3.3 立體匹配 45 3.4 軟體模擬 48 第四章 52 立體視覺系統硬體實作 52 4.1 硬體合成方法論 52 4.2 立體視覺模組設計與硬體合成 55 4.3 系統整合驗證與實驗 71 第五章 76 結論 76 5.1 結論 76 5.2 未來展望 77 參考文獻 78 附錄一 82 Grafcet of K-means image segmentation 82 Grafcet of Random cents generator 83 Grafcet of Distance calculator 84 Grafcet of Clustering 85 Grafcet of Cents updating 86 附錄二 88 Grafcet of Connected component 88 Grafcet of 1passCCP 89 Grafcet of Case 90 Grafcet of Merge 91 Grafcet of General update 92 Grafcet of Merge update 92 附錄三 93 Grafcet of Stereo matching 93 Grafcet of SAD 94 Grafcet of Disparity clustering 95

    [1] [Online.] Microsoft Xbox website, “Kinect for Xbox 360,”
    “http://www.xbox.com/zh-TW/kinect”
    [2] M. Bertozzi , A. Broggi,A. Lasagni Dipartimento diIngegneria dell’Infoemazione,“ Infrared Stereo Vision-based Pedestrian Detection ,” IEEE transactions on Intelligent Vehicles Symposium, p.24-29, 2005.
    [3] [Online.] OULUN YLIOPISTO website, “ Pulsed time-of-flight laser rangefinding ,”
    “http://herkules.oulu.fi/isbn9514269667/html/c305.html”
    [4] Altera, DE2-115 User Manual
    [5] K. H. Chang, ”A study on the economic polarized light stereoscopic projection system,” Master Thesis, National Central University, Department of Optics and Photonics, p.7-14, 2007.
    [6] Chen, ”Embedded Hardware Design of a Fast Stereo Vision System,” Master Thesis, National Central University, 2009.
    [7] [Online.] WEKIPEDIA website, “Roberts Cross,” “http://en.wikipedia.org/wiki/Roberts_Cross”
    [8] Raman Maini, Dr. Himanshu Aggarwal, “Study and Comparison of Various Image Edge Detection Techniques,” International Journal of Image Processing (IJIP), Volume 3, Issue 1, 2009.
    [9] Muthukumar Venkatesan, Daggu Venkateshwar Rao, “Hardware Acceleration of Edge Detection Algorithm on FPGAs,” Computer Vision and Image Understanding, Volume 98, Issue 3, p.462-490, 2005.
    [10] John Canny, ”A Computational Approach to Edge Detection,” IEEE transactions on Pattern Analysis And Machine Intelligence, Volume 8, No.6, 1986.
    [11] N. Otsu, “A threshold selection method from gray level histogram,” IEEE transactions on System, Man, and Cybernetics, SMC-8, 1978, p.62-66.
    [12] J. N. Kapur, P. K. Sahoo, and A. K. C. Wong, “A new method for gray-level picture thresholding using the entropy of the histogram,” Computer Vision Graphics,and Image Processing, 29(3), p.273-285, 1985.
    [13] K. L. Chung and W. Y. Chen, “Fast adaptive PNN-based thresholding algori- thms,” Pattern Recognition, 36(12), p.2793-2804, 2003.
    [14] P. Heckbert, “Color image quantization for frame buffer display,” Comput. & Graph , Volume 16, p. 297-307,1982.
    [15] Y. P. Jun, H. Yoon, J. W. Cho, “L*learning: a fast self-organizing feature map learning algorithm based on incremental ordering,” IEICE Transactions on Information & Systems, Volume E76, No. 6, p.698-706, 1993.
    [16] S. J. Wan, P. Prusinkiewicz, and S. K. M. Wong, “Variance based color image quantization for frame buffer display,” Color Res. Applicat., Volume. 15, No. 1, p. 52-58, 1990.
    [17] C. Y. Yang and J. C. Lin, “RWM-cut for color image quantization,” Comput. & Graph. , Volume. 20 p. 577-588, 1996.
    [18] J. T. Tou and R. C. Gonazlez, “Pattern Recognition Principles,” Reading MA:Addison-Wesley , 1974.
    [19] O. Verevka, “The local K-means algorithm for color image quantization,” M.Sc. dissertation, Univ. Alberta, Edmonton, AB,Canada, 1995.
    [20] A. H. Dekker, “Kohonen neural networks for optimal color quantization,” Network: Computat. Neural Syst., Volume 5, p. 351-367, 1994.
    [21] M.Z. Brown, D. Burschka, and G. Hager, “Advances in Computational Stereo,” IEEE Transactions on Pattern Analysis and Machine Intelligence, Volume. 25, No.8, p. 993-1008, 2003.
    [22] O. Veksler, “Fast variable window for stereo correspondence using integral images,” in Proceedings of IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Volume.1, p. I-556-I-561, 2003.
    [23] Minglun Gong and Ruigang Ynag, “Image-gradient-guided Real-time Stereo on Graphics Hardware,” IEEE conference on 3-D Digital Imaging and Modeling, June, 2005.
    [24] Y. Ohta and T. Kanade, “Stereo by intra- and inter-scanline search using dynamic programming”, IEEE transactions on pattern analysis and machine intelligence, Volume. 7, p. 139-154, 1985.
    [25] S. Forstmann, Y. Kanou, O. Jun, S. Thuering, and A. Schmitt, “Real-Time Stereo by using Dynamic Programming,” in Proceedings of Computer Vision and Pattern Recognition Workshop on Real-Time 3D Sensor and Their Use, p. 29-29, 2004.
    [26] J. Sun, N.-N. Zheng and H.-Y. Shum, “Stereo Matching Using Belief Propagation,” IEEE transactions on Pattern Analysis and Machine Intelligence, Volume. 25, No. 7, 2003.
    [27] Q. Yang, L. Wang, R. Yang, S. Wang, M. Liao, and D. Nister, “Real-time global stereo matching using hierarchical belief propagation,” in Proceedings of The British Machine Vision Conference, 2006.
    [28] Omnivision, OV7725 Datasheets.
    [29] Omnivision, SCCB Specifications.
    [30] H. Flatt, S. Blume, S. Hesselbarth, T. Schunemann, P. Pirsch , “A Parallel Hardware Architecture for Connected Component Labeling Based on Fast Label Merging”, Application-Specific Systems, Architectures and Processors, p. 144-149, 2008.
    [31] Y. Boykov, O. Veksler and R. Zabih, “Fast approximate energy minimization via graph cuts,” IEEE TPAMI, Volume 23, No. 11, p. 1222-1239, 2001.
    [32] Ching-Han Chen, Jia-Hong Dai, “Design and High-Level Synthesis of Discrete -Event Controller,” National Conference of Automatic Control and Mechtronics System. Taiwan, R.O.C., p. 75-80. , 2002.
    [33] Mayer, R.J., “IDEF0 Function Modeling,” Air Force Systems Command, May , 1992.
    [34] David, R, “Grafcet :A powerful tool for specification of logic controllers,” IEEE Trans on control systems technology, Volume3, No 3, p253-268, 1995.

    QR CODE
    :::