Digital Image Processing, 2nd ed. www.imageprocessingbook.com © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.

Slides:



Advertisements
Similar presentations
International Journal of Computer Vision, MICHAEL KASS, ANDREW WITKIN, and DEMETRI TERZOPOULOS Snakes: Active Contour Models.
Advertisements

Chapter 10 馬可夫鏈 緒言 如果讀者仔細觀察日常生活中所發生的 諸多事件,必然會發現有些事件的未來 發展或演變與該事件現階段的狀況全然 無關,這種事件稱為獨立試行過程 (process of independent trials) ;而另一些 事件則會受到該事件現階段的狀況影響。
通訊原理 第八章: 類比脈波調變/解調技術 通訊原理 第八章.
布林代數的應用--- 全及項(最小項)和全或項(最大項)展開式
第七章 抽樣與抽樣分配 蒐集統計資料最常見的方式是抽查。這 牽涉到兩個問題: 抽出的樣本是否具有代表性?是否能反應出母體的特徵?
Section 1.2 Describing Distributions with Numbers 用數字描述分配.
第二章 太陽能電池的基本原理 及其結構 2-1 太陽能電池的基本原理 2-2 太陽能電池的基本結構 2-3 太陽能電池的製作.
3Com Switch 4500 切VLAN教學.
指導教授:陳淑媛 學生:李宗叡 李卿輔.  利用下列三種方法 (Edge Detection 、 Local Binary Pattern 、 Structured Local Edge Pattern) 來判斷是否為場景變換,以方便使用者來 找出所要的片段。
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc.,All Rights Reserved. 參 實驗法.
1 Advanced Chemical Engineering Thermodynamics Appendix BK The Generalized van der Waals Partition Function.
Lecture 8 Median and Order Statistics. Median and Order Statistics2 Order Statistics 問題敘述 在 n 個元素中,找出其中第 i 小的元素。 i = 1 ,即為找最小值。 i = n ,即為找最大值。 i = 或 ,即為找中位數。
全球化環境下的組織管理 本章內容 全球化的趨勢 國際化的階段 國際企業母公司對分支機構的管理取向 國際企業組織的結構設計 Chapter 6
©Ming-chi Chen 社會統計 Page.1 社會統計 第十講 相關與共變. ©Ming-chi Chen 社會統計 Page.2 Covariance, 共變量 當 X, Y 兩隨機變數不互為獨立時,表示 兩者間有關連。其關連的形式有很多種, 最常見的關連為線性的共變關係。 隨機變數 X,Y.
Review of Chapter 3 - 已學過的 rules( 回顧 )- 朝陽科技大學 資訊管理系 李麗華 教授.
Section 2.3 Least-Squares Regression 最小平方迴歸
STAT0_sampling Random Sampling  母體: Finite population & Infinity population  由一大小為 N 的有限母體中抽出一樣本數為 n 的樣 本,若每一樣本被抽出的機率是一樣的,這樣本稱 為隨機樣本 (random sample)
第一章 信號與系統初論 信號的簡介與DSP的處理方式。 系統特性與穩定性的判定方法。 以MATLAB驗證系統的線性、非時變、因果等特性。
1. 假設以下的敘述為一未提供 “ 捷徑計算 ” 能力的程式段,試用程 式設計的技巧,使此敘述經此改 寫的動作後,具有與 “ 捷徑計算 ” 之 處理方法相同之處理模式。 if and then E1 else E2 endif.
Section 2.2 Correlation 相關係數. 散佈圖 1 散佈圖 2 散佈圖的盲點 兩座標軸的刻度不同,散佈圖的外觀呈 現的相聯性強度,會有不同的感受。 散佈圖 2 相聯性看起來比散佈圖 1 來得強。 以統計數字相關係數做為客觀標準。
8.1 何謂高度平衡二元搜尋樹 8.2 高度平衡二元搜尋樹的加入 8.3 高度平衡二元搜尋樹的刪除
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc.,All Rights Reserved. 肆 資料分析與表達.
CH22 可靠性加速測試方法 目的 基本假設 加速試驗模式 Inverse Power Model
Wavelet transform and SPIHT 林明德. Wavelet transform & SPIHT Wavelet transform  濾波器組  程式功能  額外資訊 SPIHT  將不同功能的 SPIHT 做整合  用於各種長寬的圖檔  適用於 DSC 的 SPIHT.
Department of Air-conditioning and Refrigeration Engineering/ National Taipei University of Technology 模糊控制設計使用 MATLAB 李達生.
Monte Carlo Simulation Part.2 Metropolis Algorithm Dept. Phys. Tunghai Univ. Numerical Methods C. T. Shih.
空間域之影像強化 3.1 背景介紹 3.2 基礎灰階值轉換 3.3 以灰階統計圖為基礎之處理 3.4 算術與邏輯運算 3.5 基礎空間域濾波
具備人臉追蹤與辨識功能的一個 智慧型數位監視系統 系統架構 在巡邏模式中 ,攝影機會左右來回巡視,並 利用動態膚色偵測得知是否有移動膚色物體, 若有移動的膚色物體則進入到追蹤模式,反之 則繼續巡視。
1 第四章 多變數函數的微分學 § 4.1 偏導數定義 定義 極限值 ■. 2 定理 極限值的基本定理 (1) 極限值的唯一性 : 若 存在,則 其值必為唯一。 (2) 若 且 ( 與 為常數 ) , 則 且 為常數且.
BEM 特論 - 第一次討論 指導教授 : 陳正宗 終身特聘教授 指導學長 : 高聖凱、謝祥志、林羿州 學生 : 吳建鋒 日期 :2015/6/16 Fundamental Solution Green’s Function Green’s Theorem.
微帶線濾波器 國立聯合大學 電機工程學系 主講人 : 徐振剛 何奕叡. 目 錄  設計程序理論說明  1. 微波諧振電路  2. 傳輸線特性  3.Chebyshev filter & Butterworth filter  4. 傳輸線殘段設計濾波器和步階阻抗式低通濾波器  設計模型.
影像處理學習營 練習(四)製作影片 【下】 影像處理學習營 教師 吳清月. 製作影片 學習重點 一. 設定影片秒數。  加入音樂,與影片做結合。 三. 影片存檔方式之選擇  上傳到網路.
3-3 使用幾何繪圖工具 Flash 的幾何繪圖工具包括線段工具 (Line Tool) 、橢圓形工具 (Oval Tool) 、多邊星形 工具 (Rectangle Tool) 3 種。這些工具畫出 來的幾何圖形包括了筆畫線條和填色區域, 將它們適當地組合加上有技巧地變形與配 色, 不但比鉛筆工具簡單,
錄音筆,MP3 撥放器, 隨身碟 之原理及規格. 定義 錄音筆 – 以錄音為首要功能 MP3 撥放器 – 以播放音樂為首要功能 隨身碟 – 以行動碟為功能.
Chapter 8 消費可能性 偏好 選擇 Part 3 家庭的選擇
影像處理學習營 練習(三)製作影片 【上】 影像處理學習營 教師 吳清月. 製作影片 學習重點 一. 利用 movie maker 軟體,編輯相片。  加上文字幕,與圖片結合。
Department of Air-conditioning and Refrigeration Engineering/ National Taipei University of Technology MATLAB 操作與 系統動態模擬 SIMULINK 李達生.
7.1 背景介紹 7.2 多解析度擴展 7.3 一維小波轉換 7.4 快速小波轉換 7.5 二維小波轉換 7.6 小波封包
選舉制度、政府結構與政 黨體系 Cox (1997) Electoral institutions, cleavage strucuters, and the number of parties.
第三章 自動再裝載運用篇 使用時機:裝載計劃完成時,尚有剩餘空 間的情形,維持已固定計劃而繼續做裝載 最佳化。以支持次日裝載計劃而提前調整 作業模式。 裝載物品設定和裝載容器設定如前兩章介 紹,於此不再重複此動作,直接從裝載計 劃設定開始,直接從系統內定的物品和容 器選取所需.
Fourier Series. Jean Baptiste Joseph Fourier (French)(1763~1830)
CH 15- 元件可靠度之驗證  驗證方法  指數模式之可靠度驗證  韋式模式之可靠度驗證  對數常態模式之可靠度驗證  失效數為零時之可靠度估算  各種失效模式之應用.
Fugacity Coefficient and Fugacity
視覺媒體. 非放映性 ( 靜畫 ) 媒體 非放映性靜畫裱褙的方式有那些 ? 濕裱 乾裱 : 利用乾裱機,乾裱襯紙 裱褙所使用之黏貼材質之比較 樹酯、膠水 : 黏貼之平整性差,圖片不可供再度 利用 口紅膠 : 黏貼之平整性佳,圖片不可供再度利用 橡皮膠 Rubber Cement : 黏貼之平整性佳,圖片.
Feature Motion for Monocular Robot Navigation. 單視覺機器人 – 追蹤 (tracking) 最常見的機器人導航技術 特徵點特性(特別 匹配性 抗破壞性) 特徵點取得(區塊 尺度不變)
公用品.  該物品的數量不會因一人的消費而受到 影響,它可以同時地被多人享用。 角色分配  兩位同學當我的助手,負責:  其餘各人是投資者,每人擁有 $100 , 可以投資在兩種資產上。  記錄  計算  協助同學討論.
Section 4.2 Probability Models 機率模式. 由實驗看機率 實驗前先列出所有可能的實驗結果。 – 擲銅板:正面或反面。 – 擲骰子: 1~6 點。 – 擲骰子兩顆: (1,1),(1,2),(1,3),… 等 36 種。 決定每一個可能的實驗結果發生機率。 – 實驗後所有的實驗結果整理得到。
Analyzing Case Study Evidence
Image Interpolation Use SSE 指導教授 : 楊士萱 學 生 : 楊宗峰 日 期 :
演算法 8-1 最大數及最小數找法 8-2 排序 8-3 二元搜尋法.
Density and control Reproduction curve 劉耀仁. Density :濃度、密度 ► 1 號區是 High-Density 區、 2 號是 Middle-density 區、 3 號區是 Low- Density 區。 ► 計算反射率( R )或透射率( T )
1 第七章 植基於可調整式量化表及離散餘 弦轉換之浮水印技術. 2 Outlines 介紹 介紹 灰階浮水印藏入 灰階浮水印藏入 灰階浮水印取回 灰階浮水印取回 實驗結果 實驗結果.
時間序列 Chap7 1 Chap 7 Decomposition method 4 components : Trend (TR t ) :長期向上或向下的移動趨勢 Seasonal variation (SN t ) :以年為基礎的變動原型 Cycle (CL t ) :在 2 到 10 年中向上或向下的改變.
數位暗房 講師:阿魯米. 常用軟體 1. 光影魔術手:簡單、方便、輕巧好用 2.Lightroom :管理照片方便容易 3.Photoshop :進階修圖技巧 示範軟體:光影魔術手.
冷凍空調自動控制 - 系統性能分析 李達生. Focusing here … 概論 自動控制理論發展 自控系統設計實例 Laplace Transform 冷凍空調自動控制 控制系統範例 控制元件作動原理 控制系統除錯 自動控制理論 系統穩定度分析 系統性能分析 PID Controller 自動控制實務.
連續隨機變數 連續變數:時間、分數、重量、……
逆向工程之資料後處理1 點資料處理 自由曲線與曲面的數學模式 曲線擬合之原理 曲線擬合之演算法 曲線建構 曲線編修.
1 雪花結構的分類 指導教授:陳國鎮 教授 研究生:蔡宗勝 報告日期: 2006/06/03. 2 大 綱 研究動機 研究目的與範圍 相關文獻探討 本研究的架構 研究結果與討論 結論與建議.
指導教授 : 林啟芳 教授 組員 : 邱秉良 林育賢. 何謂 GPS  GPS 即全球定位系統,是一個中距離圓 型軌道衛星導航系統。它可以為地球表面 絕大部分地區( 98% )提供準確的定位、 測速和高精度的時間標準。
第五章IIR數位濾波器設計 濾波器的功能乃對於數位信號進行處理﹐ 以滿足系統的需求規格。其作法為設計一 個系統的轉移函數﹐或者差分方程式﹐使 其頻率響應落在規格的範圍內。本章探討 的是其中一種方法﹐稱為Infinite impulse register(IIR)。 IIR架構說明。 各種不同頻帶(Band)濾波器的設計方法。
多媒體技術與應用 實習作業 Part II. 實習作業 利用 Corel Paint Shop Pro X2 完成作業。 作業一:利用影像處理的技巧,讓這張影像變 的更清晰。
1 5 影像復原 5.1 影像衰減與復原模式 5.2 雜訊模式 5.3 具雜訊影像之復原 - 空間域濾波 5.4 具雜訊影像之復原 - 頻域濾波 5.5 線性空間不變系統之衰減 5.6 衰減函數之估計.
6 彩色影像處理 6.1 色彩基礎 6.2 色彩模式 6.3 假彩色影像處理 6.4 全彩色影像處理基本原理 6.5 色彩轉換
財務管理概論 劉亞秋‧薛立言 合著 (東華書局, 2007)
1 Chemical and Engineering Thermodynamics Chapter 1 Introduction Sandler.
CH 14-可靠度工程之數學基礎 探討重點 失效時間之機率分配 指數模式之可靠度工程.
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc.,All Rights Reserved. 肆 資料分析與表達.
第七章 計算複雜度概論:排序問題 7.1計算複雜度 7.2插入排序與選擇排序 7.3每次比較至多移除一個導致之演算法的下限
取樣 3.1 量化 3.2 向量量化 第1頁第1頁 3.1 取樣  數位影像:  數位影像:在空間座標和亮度都離散化的影像  取樣:  取樣:取不同空間位置的函數 ( 灰階 ) 值當樣本  量化:  量化:用一組整數值來表示這些樣本.
Presentation transcript:

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 空間域中的 影像增強 mask, filter, kernel, template, window

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Outline  單圖全幅增強  亮度轉換函數  Gamma 轉換的應用  直方圖等化  多圖全幅增強  差值突顯差異  平均消除雜訊  單圖局部增強  濾波遮罩  平滑、銳利、梯度 … 運算子

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 對比度增強的函數 (for all pixels on the target image)

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 基本灰階轉換函數

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 負片轉換

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 對數轉換

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 灰階切片 轉換函數

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Outline  單圖全幅增強  亮度轉換函數  Gamma 轉換的應用  直方圖等化  多圖全幅增強  差值突顯差異  平均消除雜訊  單圖局部增強  濾波遮罩  平滑、銳利、梯度 … 運算子

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 乘冪轉換  < 1: 暗色擴張轉亮  > 1: 亮色擴張轉暗

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 乘冪轉換 (  < 1) 提高暗色對比 暗色轉成亮 原亮色壓縮 背椎骨折

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 乘冪轉換 (  < 1) 提高暗色對比 暗色轉成亮 原亮色壓縮 背椎骨折

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 乘冪轉換 (  > 1)

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Outline  單圖全幅增強  亮度轉換函數  Gamma 轉換的應用  直方圖等化  多圖全幅增強  差值突顯差異  平均消除雜訊  單圖局部增強  濾波遮罩  平滑、銳利、梯度 … 運算子

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 機動轉換 增加 中段斜率 提高其對比 甚至變二值 花粉

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 直方圖等化 (Histogram equalization)

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 單調遞增函數

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain L= 100, N=10000 r = {r 0, r 1, r 2, r 3, r 4, r 5, …r 99 } = {0, 0.01, 0.02, 0.03, 0.04, 0.05, …0.99} n ={1500, 2000, 1500, 1000, 3000, 1000, 0…0} s= {0.15, 0.35, 0.5, 0.6, 0.9, 1, 1…1} |median| = s = T( r)

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain L= 256, N=10000 r = {r 0, r 1, r 2, r 3, r 4, r 5, …r 255 } = {0, 1, 2, 3, 4, 5, …255} / 256 n ={1500, 2000, 1500, 1000, 3000, 1000, 0…0} s= {0.15, 0.35, 0.5, 0.6, 0.9, 1, 1…1} x 256 | floor  {38, 89, 128, 153, 230, 256, …256} |median| = s = T( r)

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain L= 256, N=10000 r = {r 0, r 1, r 2, r 3, r 4, r 5, …r 255 } = {0, 1, 2, 3, 4, 5, …255} / 255 n ={1500, 2000, 1500, 1000, 3000, 1000, 0…0} s= {0.15, 0.35, 0.5, 0.6, 0.9, 1, 1…1} x 255 | floor  {38, 89, 127, 153, 229, 255, …255} |median| = s = T( r) 實作

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain s = T(r) Qu: 重複進行 H.E. 之效果如何 ? z = T 2 (s) =s? [hint] P s (s)=1 i.e. 均勻分佈

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 直方圖匹配 (Histogram Matching/ Specification) 修正直方圖分佈 機率函數為 P z (z) z = T 2 (r)= G -1 (T(r)) 想想 : r= T -1 (T(r))

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 直方圖等化 ( 注意左側空段 )

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 直方圖匹配 (1)  (2) Note: (a) 為預想之分佈狀況 (d) 之分佈是否合於 (a)?

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 7x7 鄰域的 局部直方圖等化

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Outline  單圖全幅增強  亮度轉換函數  Gamma 轉換的應用  直方圖等化  多圖全幅增強  差值突顯差異  平均消除雜訊  單圖局部增強  濾波遮罩  平滑、銳利、梯度 … 運算子

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 影像差值用於血管攝影

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 空間域的雜訊消除: 重複攝影之後取平均 (b) 模擬被破壞之一幅圖

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 重複攝影之後取平均 ( 與上頁圖 (a) 影像 作差值分析 )

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Outline  單圖全幅增強  亮度轉換函數  Gamma 轉換的應用  直方圖等化  多圖全幅增強  差值突顯差異  平均消除雜訊  單圖局部增強  濾波遮罩  平滑、銳利、梯度 … 運算子

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 濾波遮罩 (filter mask)

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 濾波遮罩 (filter mask)

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 兩個 3x3 平滑濾波遮罩 for 平滑 ( 鈍化 ) smoothing (averaging) masks

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 平滑濾波

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 平滑濾波並取臨界值

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 使用 “ 平均遮罩 ” 與 “ 中值遮罩 ” 消除雜訊

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain ( 二階更適合突顯細節 ) f ’f ’’ Ramp 寬厚 區段 首尾 邊緣 Isolated Point 正反 突波 較強 響應 Thin Line 正反 區段 較強 響應 Step 較強 響應 正反 突波

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 拉普拉斯 ( 二階導數 ) 遮罩 for 銳化 ( 強化細節 )

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 拉普拉斯濾波、 視中心正負做加 減 (fig. 3.39) 、與 原始影像相加

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 複合拉普拉斯遮罩 ( 一次計算即可 ) 舉二例 e.g. 燒毀的 白熾燈泡 鎢絲

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 高增幅濾波, 其實就是加上一定比例的原圖

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain A=0 A=1 A=1.7

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 梯度遮罩 ( 一階導數 )

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 梯度遮罩,突顯 Ramp & Step 可放大不規則邊緣 (e.g. 隱形眼鏡 )

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 梯度遮罩 用於檢測

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Outline  單圖全幅增強  亮度轉換函數  Gamma 轉換的應用  直方圖等化  多圖全幅增強  差值突顯差異  平均消除雜訊  單圖局部增強  濾波遮罩  平滑、銳利、梯度 … 運算子  多圖及濾波合成

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain 複合影像 處理技術 Laplacian (a)+(b) (a)’s Sobel (b) (c) (d)

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain Avg of (d) i.e. (a)’s Sobel (c) x (e) (a) + (f) Power-law Enhancement of (g) (e) (f) (g) (h)

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain Chapter 4 Image Enhancement in the Frequency Domain Chapter 4 Image Enhancement in the Frequency Domain

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods 1D Frequency Domain

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods 8 x 8 2D DCT basis Discrete Fourier Transform (DFT) Discrete Cosine Transform (DCT) F(0,1)=? 2D Frequency Domain

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Discrete Fourier Transform (1)

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods 一個受損的積體電路 影像及其傅立葉頻譜 Discrete Fourier Transform (2)

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Lowerpass vs. Highpass Filters 低通濾波 v.s. 高通濾波

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain 高通濾波並往上平移 增強 3/2 響應值

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration Chapter 4 Image Enhancement in the Frequency Domain Chapter 4 Image Enhancement in the Frequency Domain

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration 影像重建模型

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration f(x,y)F(u,v) G(u,v)g(x,y) FT IFT (IDFT) (DFT) G(u,v) = F(u,v) H(u,v)

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration 帶拒濾波器 (Bandregect filters, IBRF, BBRF, GBRF)

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration 帶通濾波器 (Bandpass filters) 所取得雜訊圖樣

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration 特殊凹陷濾波器 (notch filters)

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration 特殊凹陷 帶通 / 帶拒 濾波器 ( 一 ) 佛州 & 墨西哥灣

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration 火星影像及其頻譜 特殊凹陷 帶通 / 帶拒 濾波器 ( 二 )

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Break 雜訊 ( 濾波器設計 ) 找一個有效的 H(u,v) 其他破壞 ( 反濾波器設計 ) 找出干擾的 H(u,v) 使用 1/H(u,v) 逆轉 f(x,y)F(u,v) G(u,v)g(x,y) FT IFT (IDFT) (DFT) G(u,v) = F(u,v) H(u,v) f(x,y)F(u,v) G(u,v)g(x,y) F(u,v) = G(u,v)/H(u,v) ^ ^ ^

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration 大氣擾動

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration 大氣擾動之反濾波 H(u,v) 在半徑 70 以外有 H =0 以除法將高頻部份予以放大

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration (a) 使用完整反濾波 (b) 限制半徑反濾波 (c) Wiener Filter (with K)

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration 瞬時運動

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration 左:瞬動破壞 中:完整反濾波 右: Wiener filter 上到下: 外加雜訊逐減

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods End