林達德臺灣大學:生物產業機電工程學研究所張洪國Chang, Hung-KuoHung-KuoChang2007-11-262018-07-102007-11-262018-07-102004http://ntur.lib.ntu.edu.tw//handle/246246/52874精準農業中空間變異資料的取得,常用的方式是以人力到田間取樣,或以衛星影像及航空照片等得到農地資訊,此種技術通常應用於大面積耕地之地理資訊系統的建立。對於較小區域的農地或農業環境而言,其成本相對較高。然而在諸多農業的應用層面中,小區域農場與農業用地之地理資訊系統的建立,仍有其需要性。本研究整合了多項技術,其中包括全球定位系統、地理資訊系統、立體機器視覺、環場影像與影像資料庫等,透過立體視覺與環場影像的方式重建小區域農地的影像資料,再輔以地理資訊系統結合成圖層及管理的介面,其目的是將農地資料予以數位化,再藉由數位地圖與影像的方式將農地數位資訊呈現出來,以達到快速取得與展現農地資訊的目的。此系統的主要構成包括了全球定位系統、電子羅盤、架設於自動旋轉平台的兩部攝影機、影像處理系統與整合軟體。系統的資料庫分為三層,一層為單純由全球定位系統與電子羅盤所得到的定位點資料,另一層為結合三種儀器所獲得具有定位資訊的立體視覺影像資料,最後一層是透過環場影像軟體所產生的環場影像資料。此系統將電子地圖、立體視覺及環場影像資料整合於個人電腦的地理資訊系統中,並可快速建構網路地理資訊系統,可提供遠端取得田間資訊,最後可透過環場影像與三維重建等技術達到空間測距與視覺展現田間資訊之功能。最後本研究以空間製圖系統建構了圖層資訊、空間定位中相對應的屬性資料及具有地理座標的影像資料庫,並以台大校園、大安森林公園與安康農場以及農業試驗所精準農業試驗場為研究場景。除此之外以網路地理資訊系統來展現虛擬實境,讓使用者透過瀏覽器可獲得查詢的結果,其結果包含圖層屬性資訊及場景影像,以即時資訊輸出給一般使用者。Spatial variation information used in precision agriculture usually is obtained by manual sampling, satellite imaging or aerial photo techniques. These techniques are suitable for the establishment of GIS of large field areas while for small agricultural sectors these techniques are comparatively costly. For small agricultural sectors, the needs to establish GIS exist for many applications. This study presents an integrated system comprising GPS, GIS, stereo machine vision, panorama image, and image database. The field information can be retrieved by stereo vision and panorama images that are combined with digital map layers and information management interface. The goal of the system development is to efficiently digitized field information and allow for later retrieval, display and analyses of field information. The major components of the system include the GPS, electronic compass, two CCD cameras mounted on an automatic rotary stage, image processing functions and integration software. There are three layers of the system database. They are the layer for positioning information acquired by GPS and electronic compass, the layer of stereo images linked with positioning information, and the layer of panorama images generated from stereo images. The acquired field images and positioning information are integrated into GIS in a personal computer and can be immediately transferred to a web server for remote access. Range estimation of objects in the field can be estimated through stereo images and visual examination of field information can be easily achieved with panorama images. Finally, spatial mapping system was applied to construct the map layer information and corresponding attribute information of spatial location and multiple images database of spatial coordinates. These case studies were NTU campus, Da-An forest park, An-Kang farm of NTU in Taipei city and experimental field for precision farming at TARI. In addition, the virtual reality can be displayed through Internet GIS, and provide the real time information to the general users, and then obtain the query results from the Web browser. The result include layer attribute information and site images that can show on the map and out put by internet.目錄 摘要 I ABSTRACT II 目錄 III 圖目錄 VI 表目錄 VIII 第一章 前言與研究目的 1 1.1 前言 1 1.2 研究目的 2 第二章 文獻探討 4 2.1 精準農業 4 2.2 全球定位系統 6 2.2.1 基本架構 6 2.2.2 定位原理 7 2.2.3 誤差來源分析 8 2.2.4 座標轉換系統 11 2.3 地理資訊系統 14 2.3.1 基本功能架構 15 2.3.2 空間資料格式 17 2.4 網路地理資訊系統 18 2.4.1 基本功能與運作方式 18 2.4.2 相關應用介紹 20 2.5 虛擬實境 22 2.5.1 立體機器視覺於影像測距之應用 22 2.5.2 環場影像技術於虛擬實境之應用 26 第三章 研究設備與方法 28 3.1 系統架構 28 3.2 硬體設備簡介 30 3.2.1 全球定位系統 30 3.2.2 電子羅盤 36 3.2.3 立體機器視覺系統 38 3.2.4 電腦設備 39 3.2.5 多功能載具車與供電系統 39 3.3 軟體簡介 40 3.3.1 影像處理函式庫 40 3.3.2 地理資訊系統函式庫 41 3.3.3 網路地理資訊系統程式應用軟體 41 第四章 多功能地理資訊系統之建構 43 4.1 空間製圖系統之改良 43 4.1.1 空間製圖基本概念 43 4.1.2 全球定位系統 45 4.1.3 電子羅盤 49 4.1.4 立體機器視覺系統之空間測距 51 4.1.5 空間測距座標 55 4.1.6 空間製圖系統之系統整合 57 4.1.7 系統軟體界面與操作說明 59 4.2 環場影像接合技術之探討 65 4.2.1 圓柱座標映射 69 4.2.2 影像扭曲變形 69 4.2.3 局部方格調整變形 73 4.2.4 影像間特徵比對與平移 74 4.2.5 影像透明化接合 76 4.2.6 影像邊界裁切 76 4.3 網路地理資訊系統之建立 78 4.3.1 ArcIMS網路地理資訊系統架構 78 4.3.2 虛擬實境之網路地理資訊系統 80 4.3.3 網路地理資訊系統之功能介紹 83 第五章 結果與討論 85 5.1空間製圖系統的精度實驗 85 5.1.1全球定位系統精度實驗 85 5.2 空間製圖系統的場景建構案例研究 88 5.2.1 台大校園場景建構案例 88 5.2.2 台大安康農場建構案例 90 5.2.3 台中農試所農地建構案例 92 5.2.4 大安森林公園景觀建構案例 92 5.3 網路地理資訊系統 94 5.3.1 虛擬校園景觀 94 5.3.2 田間農地景觀 94 5.3.3 虛擬公園景觀 97 第六章 結論與建議 101 6.1 結論 101 6.2 建議 102 參考文獻 104 圖目錄 圖2-1 全球定位系統座標轉換流程圖 12 圖2-2 同軸幾何關係圖 24 圖2-3 平行軸線的立體視覺關係圖 25 圖3-1 多功能地理資訊系統的架構示意圖 29 圖3-2 硬體設備示意圖 31 圖3-3 各硬體設備照片 32 圖4-1 空間製圖系統的製圖應用例 44 圖4-2 空間製圖系統的空間定位 46 圖4-3 TWD-67座標轉換流程 47 圖4-4 TWD-97座標轉換流程 48 圖4-5 電子羅盤 50 圖4-7 空間製圖系統的測距座標 56 圖4-8 空間製圖系統的架構示意圖 58 圖4-9 空間製圖系統的主視窗界面 60 圖4-10 空間製圖系統的資訊檢視模式 62 圖4-11空間製圖系統的攝影取像模式 64 圖4-12 電子地圖建立流程 66 圖4-13 空間製圖系統的製圖與取樣模式 67 圖4-14 空間製圖系統的查詢檢視模式 68 圖4-15 環場影像接合流程圖 70 圖4-16 影像平面與圓柱座標映射關係 71 圖4-17 環場影像接合流程(一) 72 圖4-18 環場影像接合流程(二) 75 圖4-19環場影像接合流程(三) 77 圖4-20 ARCIMS網路地理資訊系統基本架構圖 79 圖4-22 網路地理資訊系統 84 圖5-1 空間製圖系統的精度實驗示意圖 86 圖5-2 全球定位系統差分式定位座標平均圖 87 圖5-3 台大校園場景建構案例 89 圖5-4 台大安康農場建構案例 91 圖5-5 農試所精準農業試驗田區建構案例 93 圖5-6 大安森林公園景觀建構案例 95 圖5-7 台大校園導覽之網路地理資訊系統 96 圖5-8 台大安康農場之網路地理資訊系統 98 圖5-9 農試所精準農業試驗田區之網路地理資訊系統 99 圖5-10 大安森林公園之網路地理資訊系統 100 表目錄 表3-1 NMEA-0183字串列表 34 表3-2 GPGGA字串欄位描述 35 表3-3 電子羅盤資料格式 37 表4-1 定位點資料與影像資料庫對照表 63en-US精準農業立體視覺網路地理資訊系統虛擬實境環場影像Precision AgricultureStereo VisionVirtual RealityPanorama ImageInternet GIS整合網路技術與虛擬實境之地理資訊系統A Geographic Information System Integrated with Internet Technology and Virtual Realitythesis