File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed
Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ layout : post
3+ title : Digital image processing-03
4+ date : 2020-10-11 10:45
5+ categories : [NCHU, DIP]
6+ ---
7+
8+ ## Bayer Color Filter Array (拜爾濾色鏡)
9+
10+ 在現今人都會使用數位相機來拍攝照片,數位相機在紀錄數位影像的時候須經過一連串的處理才能提供好的觀看品質,其中最重要的處理之一為` 色彩濾波矩陣(Color Filter Array, CFA) `
11+
12+ ### 全彩影像
13+
14+ 全彩影像通常由三種顏色組成,最常使用的是` 紅、綠、藍 ` ,由於成本考量,` 單一像素只會有單一顏色感應器 ` 。
15+
16+ 最普遍用到的色彩濾波矩陣為Bayer CFA,如下圖
17+
18+ ![ pic] ( https://lh4.googleusercontent.com/-G32BfnORRaY/TWxOh-sk36I/AAAAAAAAARg/NaVrr_v3IfM/CFA.png )
19+
20+ 濾色器的排列為有50%綠色、25%藍色、25%紅色,綠色過濾器數量是紅色、藍色的兩倍,這是為了` 模擬人眼對綠光更高的敏感度 ` ,對人眼而言,最敏感的波長為555 nm,` 對應到的頻率為540 兆赫, ` 屬於綠光的波段,所以為了達到好的畫面品質,所以` 綠色的比重會比較多 `
21+
22+ ## Demosaicing 去馬賽克
23+
24+ 是一種數位影像處理的演算法,目的是從覆有的濾色陣列(CFA)的感光元件所輸出的` 不完全色彩取樣中,重建出全彩影像 ` ,也稱為` 濾色陣列內插法(CFA Interpolation) ` 或色彩重建法
25+
26+ ## 影像代數處理
27+
28+ 在做影像代數處理要` 確保兩張影像的大小要一致 `
29+
30+ ### 影像相加
31+
32+ 影像若是100X100,而結果也會是100X100
33+
34+ 使結果有` 融合 ` 或` 透明 ` 的效果,可以參考下圖
35+
36+ ![ pic] ( https://opencv-python-tutroals.readthedocs.io/en/latest/_images/blending.jpg )
37+
38+ 註:` 實作上會將兩張圖片,同樣位置的像素相加除二 `
39+
40+ ### 影像相減
41+
42+ 兩張圖片做相減,可以得到差值(` 這兩張圖片不一致 ` 的地方)
43+
44+ ![ pic] ( http://www.csharphelper.com/howto_compare_images3.png )
45+
46+
47+ 參考資料:
48+
49+ - [ 色彩濾波矩陣] ( https://sites.google.com/site/mspeentust/shi-yan-shi-jian-jie/se-cai-lue-bo-ju-zhen )
50+
51+ - [ Bayer彩色濾波器] ( https://www.twblogs.net/a/5b7c61cc2b71770a43dab8f6 )
52+
53+ - [ 拜爾濾色鏡] ( https://zh.wikipedia.org/wiki/%E6%8B%9C%E7%88%BE%E6%BF%BE%E8%89%B2%E9%8F%A1 )
54+
55+ - [ 可見光] ( https://zh.wikipedia.org/wiki/%E5%8F%AF%E8%A7%81%E5%85%89 )
56+
57+ - [ 去馬賽克] ( https://zh.wikipedia.org/wiki/%E5%8E%BB%E9%A6%AC%E8%B3%BD%E5%85%8B )
You can’t perform that action at this time.
0 commit comments