簡易檢索 / 詳目顯示

研究生: 胡閎閔
Hong-Min Hu
論文名稱: 時序中值濾波背景相減演算處理系統之軟/硬整合設計與實現
Hardware/Software Co-design and Implementation of a Temporal-Median-Filter-based Algorithmic Processing System for Background Subtraction
指導教授: 吳乾彌
Chen-Mie Wu
口試委員: 陳省隆
Hsing-Lung Chen
陳郁堂
Yie-Tarng Chen
學位類別: 碩士
Master
系所名稱: 電資學院 - 電子工程系
Department of Electronic and Computer Engineering
論文出版年: 2015
畢業學年度: 103
語文別: 中文
論文頁數: 92
中文關鍵詞: 時序中值濾波背景相減演算法軟/硬整合設計FPGA設計
外文關鍵詞: Temporal-Median-Filter-based Algorithmic Process
相關次數: 點閱:246下載:0
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報

本論文是有關時序中值濾波背景相減演算處理系統之軟/硬整合設計與驗證,相關研究工作包含下列四大部分:
第一部份為時序中值濾波(Temporal Median Filter)背景相減(Background Subtraction)演算法之相關軟體設計,並以影像輸出結果展示其應用之優越性。
第二部份為設計與實現時序中值濾波背景相減演算處理器,其中包含了影像資料提取副處理器、中值搜尋副處理器及背景相減副處理器;最後,將以上設計之硬體整合於單晶片可程式化系統中,並以Altera FPGA開發板實現之。
第三部份是有關演算處理系統之設計與實現,其包括用以儲存多張完整影像之同步動態記憶體、上述之演算處理器、NIOS II CPU及相關軟韌體,並以NIOS II IDE來驗證其功能。
第四部份是分析及評估演算處理系統之整體軟韌體及硬體效能。
整體而言,本論文係以研究時序中值濾波背景相減演算法與設計其演算處理系統為目標,並將其實現於Altera FPGA開發板上。透過各種不同的輸入影像之實驗測試,證實本論文所發展之演算處理系統,有極佳的效能,其設計方法亦可改善演算處理系統設計與驗證流程的效率。


This thesis is relevant to the hardware/software co-design and implementation of a temporal-median-filter-based algorithmic processing system for background subtraction. The research work consists of the following four parts.

The first part is related to the software design of the temporal-median-filter-based background subtraction algorithm. Meanwhile, through using the image-based output results, this algorithm has demonstrated its superiority in various applications.

The second part is to design and implement a temporal-median-filter-based algorithmic processor for background subtraction. This algorithmic processor comprises three subprocessors which are for image information access, median finding, and background subtraction. Finally, all these parts mentioned above are integrated together and implemented on an Altera FPGA development board.

The third part is related to the design and implementation of an algorithmic processing system which comprises SDRAM (for storing multiple complete images), the algorithmic processor described above, NIOS II CPU, and the related firmware. Meanwhile, the functionality of this system is verified through using NIOS II IDE.

The fourth part is to analyze and evaluate the software, firmware, and hardware performance of the whole algorithmic processing system.

On the whole, the goals of this thesis are to do research on a temporal-median-filter-based background subtraction algorithm and design an algorithmic processing system (on an Altera FPGA development board) for it. After being verified with various kinds of digital images, the algorithmic processing system developed in this thesis has shown fabulous computing performance and the related hardware/software co-design method can also be used to improve the efficiency of the design and verification process for other algorithmic processing systems.

第一章緒論.......... 1 1.1 研究背景與動機................ 1 1.2 研究內容相關架構......................... 3 1.3 論文組織及概觀............................. 4 第二章時序中值濾波背景相減演算處理系統軟/硬整合設計之發 展環境與驗證流程.................................... 5 2.1 SOPC-based 軟/硬整合設計簡介.................. 5 2.2 Linux-based 軟體開發環境............................. 8 2.2.1 CYGWIN ................................... 8 2.2.2 GNU C Compiler ....................... 9 2.3 SOPC-based 軟體開發環境................................ 10 2.3.1 NIOS II IDE.................................... 10 2.4 SOPC-based 硬體開發環境................................ 11 2.4.1 NIOS II 嵌入式系統............................. 11 2.4.1.1 NIOS II 處理器. . . . . . . . . . . . . . 12 2.4.1.2 Avalon Bus 匯流排. . . . . . . . . . . . 13 2.4.2 Quartus II SOPC Builder 開發環境....................... 17 2.4.3 Altera Stratix II FPGA 開發版..................... 19 2.5 時序中值濾波背景相減演算處理系統驗證架構與開發 流程................. 20 2.5.1 時序中值濾波背景相減演算處理系統軟體驗 證架構.......................................... 20 2.5.2 時序中值濾波背景相減演算處理系統硬體開 發流程......................................... 21 第三章時序中值濾波背景相減演算法之相關軟體設計.................... 24 3.1 背景相減演算法之原理介紹........................... 24 3.2 背景相減演算法的種類............................ 27 3.3 背景相減演算法之軟體相關設計......................... 28 3.3.1 圖形資料儲存方式與資料格式............................. 30 3.3.2 演算法軟體設計結構............................................. 31 3.3.3 時序中值濾波背景相減之軟體設計..................... 33 3.3.4 軟體設計之結果分析............................................. 36 第四章時序中值濾波背景相減演算處理系統之硬體設計................ 41 4.1 演算處理系統硬體設計簡介..................... 41 4.1.1 演算處理系統之硬體架構.................... 42 4.1.2 DDR SDRAM 與直接記憶體存取........................ 45 4.1.3 時序中值濾波背景相減演算處理器..................... 46 4.1.4 NIOS II 處理器................................ 47 4.2 資料之儲存格式............................................ 48 4.2.1 資料於DDR SDRAM 之儲存方式....................... 48 4.2.2 資料於內部資料緩衝器之儲存方式..................... 49 4.2.3 資料於處理單元記憶體之儲存方式..................... 52 4.3 時序中值濾波背景相減演算處理器硬體設計..................... 53 4.3.1 演算處理器結構簡介........................... 53 4.3.2 控制單元之硬體設計............................................. 54 4.3.3 來源資料提取副處理器......................................... 59 4.3.4 中值搜尋副處理器................................................. 65 4.3.5 背景相減副處理器................................................. 70 4.4 時序中值濾波背景相減演算處理系統之軟/硬介面設計... 74 4.4.1 NIOS II 驅動程式設計........................................... 75 第五章時序中值濾波背景相減演算處理系統之驗證與效能測試.... 78 5.1 驗證與測試環境簡介................................... 78 5.2 時序中值濾波背景相減演算處理系統之結果驗證............. 79 5.3 時序中值濾波背景相減演算處理系統之執行效能比較..... 83 5.3.1 軟/硬體效能測試簡介........................................... 85 5.3.2 軟/硬體設計之效能比較....................................... 86 第六章結論.............................................. 88 參考文獻......................................... 89

[1] Altera Corporation, Avalon Interface Specifications. Altera Corporation,
2015.
[2] Altera Corporation, Nios Development Board Stratix II Edition Reference
Manual. Altera Corporation, 2007.
[3] Altera Corporation, Nios II Classic Processor Reference Guide. Altera
Corporation, 2015.
[4] Altera Corporation, Quartus II Handbook. Altera Corporation, 2015.
[5] M. D. Ciletti, Advanced Digital System Design with the Verilog HDL.
Prentice Hall, 2011.
[6] B. Lo and S. Velastin, “Automatic congestion detection system for underground platforms,” Proceedings of 2001 International Symposium
on Intelligent Multimedia, Video and Speech Processing, pp. 158–
161, 2001.
[7] C. Wren, A. Azarbayejani, T. Darrell, and A. Pentland, “Pfinder: realtime tracking of the human body,” IEEE Transactions on Pattern
Analysis and Machine Intelligence , vol. 19, pp. 780–785, Jul. 1997.
89
[8] C. Stauffer and W. Grimson, “Adaptive background mixture models
for real-time tracking,” IEEE Computer Society Conference on Computer
Vision and Pattern Recognition, vol. 2, pp. –252 Vol. 2, 1999.
[9] G. Cai and Y. Harada, “An improved real-time moving object detecting
system based on sopc,” International Conference on Computer,
Mechatronics, Control and Electronic Engineering (CMCE), vol. 3,
pp. 195–198, Aug. 2010.
[10] M. Piccardi, “Background subtraction techniques: a review,” IEEE
International Conference on Systems, Man and Cybernetics, vol. 4,
pp. 3099–3104 vol.4, Oct. 2004.
[11] M.-H. Hung, J.-S. Pan, and C.-H. Hsieh, “Speed up temporal median
filter for background subtraction,” First International Conference on
Pervasive Computing Signal Processing and Applications (PCSPA),
pp. 297–300, Sept. 2010.
[12] M.-H. Hung, J.-S. Pan, and C.-H. Hsieh, “A fast algorithm of temporal
median filter for background subtraction,”Journal of Information
Hiding and Multimedia Signal Processing, vol. 5, num. 1, pp. 33–40,
Jan. 2014.
[13] S. Perreault and P. Hebert, “Median filtering in constant time,” IEEE
Transactions on Image Processing, vol. 16, pp. 2389–2394, Sept.
2007.
[14] S.-W. Chen, L. K. Wang, and J.-H. Lan, “Moving object tracking
based on background subtraction combined temporal difference,”
Proceeding of International Conference on Emerging Trends in Computer
and Image Processing (ICETCIP), 2011.
[15] T. Huang, G. Yang, and G. Tang, “A fast two-dimensional median filtering algorithm,” IEEE Transactions on Acoustics, Speech and Signal
Processing, vol. 27, pp. 13–18, Feb. 1979.
[16] 許志豪, 影像二值化演算處理器之軟/硬整合設計與實現. 國立台灣科技大學電子工程系碩士學位論文, 民國98 年.
[17] 黃耀陞, 文件影像旋轉演算處理器之軟/硬整合設計與實現. 國立台灣科技大學電子工程系碩士學位論文, 民國99 年.
[18] 林奕諴, 文件斜角偵測演算處理器之軟/硬整合設計與實現. 國立台灣科技大學電子工程系碩士學位論文, 民國99 年.
[19] 黃健軒, HT-based 直線偵測兩階段演算處理器之軟/硬體整合設計與實現. 國立台灣科技大學電子工程系碩士學位論文, 民國91 100 年.
[20] 楊昌祐, 中文扭曲文件影像知還原與文字切割. 國立台灣科技大學電子工程系碩士學位論文, 民國100 年.
[21] 許博翔, 多像素管線式單回合連通物件標示演算處理器之軟/硬整合設計與實現. 國立台灣科技大學電子工程系碩士學位論文,民國101 年.
[22] 龔伯元, 基於FPGA 之單次迭代平行細線化演算法處理系統之設計與實現. 國立台灣科技大學電子工程系碩士學位論

無法下載圖示 全文公開日期 2020/08/11 (校內網路)
全文公開日期 本全文未授權公開 (校外網路)
全文公開日期 本全文未授權公開 (國家圖書館:臺灣博碩士論文系統)
QR CODE