修改後的 Laroche Bayer Demosaicing 演算法

簡要說明

檔案: \examples\Processing\Color\Bayer\Laroche_modified_maVCL.va

預設平台: mE5-MA-VCL

短說明

根據 Laroche 的資源優化 Bayer Demosaicing 演算法

在本節中,我們將介紹 Bayer Demosaicing 演算法的微幅修改版本 「Bayer Demosaicing Algorithm According to Laroche」。
插補演算法唯一的區別(請參閱 方程式 8 設定為 方程式 12)在於,用於插補紅色與藍色色值的綠色色值(,請參閱方程式 10 設定為 方程式 12)採用雙線性插補。所有其他色彩插補步驟均等同於 「原始 Laroche 濾鏡」。
在 「Bayer Demosaicing」 中展示了 Bayer Demosaicing 結果的質化差異。您可以在 \examples\Processing\Color\Bayer\Laroche_modified_maVCL.va 下找到修改版本的對應 VisualApplets 範例。它是針對 8 位元輸入位元深度與 Parallelism 2 的 microEnable 5擷取卡所實作,但也可以輕鬆改編為適用於 microEnable IV 擷取卡、其他輸入位元深度或 Parallelism 的版本。
以下將簡要介紹 VisualApplets 設計中的修改部分。在 圖 252,「修改版 Laroche 濾鏡的 ColourInterpolation 內容。」 中,您可以看到 HierarchicalBox 的內容 ColourInterpolation (請參閱 圖 246「Bayer 去馬賽克處理的插值步驟 1」)。

修改版 Laroche 濾鏡的 ColourInterpolation 內容。

圖 252. 修改版 Laroche 濾鏡的 ColourInterpolation 內容。


紅藍色值是在 RedandBlue 方塊中,從 Bayer 陣列的 )核心以及目前像素位置計算出的綠色值 中插補得出。綠色值的計算是在 HierarchicalBox GreenOut中完成的。
與 「Bayer Demosaicing Algorithm According to Laroche」 中的範例相同,目前像素位置的顏色可在 whereAmI_Colour。最後,將所有三個顏色分量合併在一起。