【正文】
physical resource. Aiming at make the photo to be cartoon, this paper briefly describes the development background and environment of the way to deal with photos by matlab. Perform the following operations while ensuring the image without changing the core structure of the case: 1. Based on needs, a bilateral filter to select the image is filtered, in order to remove noise and improve image quality for the purpose of convenience feature extraction. 2. By paring withe RGB color space and Lab color space, choose the better one to achieve color quantization, and reduce the colors in the image. 3. According to the needs of marginal integrity and speed, Dog operator is used to do edge detection, then make the edge stronger and use imopen and imclose. Finally to make the image seems to be cartoon, and realize of nonphotorealistic rendering. Compare with other existing similar methods, we can sum up that this paper achieve making the photo to be cartoon. Keywords: Nonphotorealistic rendering, Bilateral filter, Color quantization, edge detection. 1 目錄 目錄 摘要 ........................................................................................................................................... Ⅰ ABSTRACT ................................................................................................................................... Ⅱ 目錄 ............................................................................................................................................. 1 第一章 緒論 ................................................................................................................................ 3 研究背景 ............................................................................................................................ 3 國(guó)內(nèi)外研究狀況 ................................................................................................................. 4 研究意義 ............................................................................................................................ 6 第二章 漫畫(huà)效果圖像處理 .......................................................................................................... 7 漫畫(huà)效果分析 ..................................................................................................................... 7 漫畫(huà)效果流程圖 ................................................................................................................ 7 第三章 雙邊濾波 ......................................................................................................................... 8 工具介紹 ............................................................................................................................ 9 簡(jiǎn)介 ................................................................................................................... 9 優(yōu)點(diǎn) ................................................................................................................... 9 濾波器簡(jiǎn)介及選擇 ............................................................................................................ 10 雙邊濾波原理 ................................................................................................................... 11 實(shí)現(xiàn)雙邊濾波 ................................................................................................................... 13 小結(jié) .................................................................................................................................. 13 第四章 顏色量化 ....................................................................................................................... 15 量化選擇 .......................................................................................................................... 15 實(shí)現(xiàn)量化 .......................................................................................................................... 17 小結(jié) .................................................................................................................................. 17 第五章 邊緣檢測(cè) ....................................................................................................................... 19 領(lǐng)域運(yùn)算 .......................................................................................................................... 19 算子的比較選擇 ............................................................................................................... 20 邊緣檢測(cè) .......................................................................................................................... 21 2 閾值處理 .......................................................................................................................... 21 開(kāi)運(yùn)算和閉運(yùn)算 ............................................................................................................... 23 圖像合成 .......................................................................................................................... 23 小結(jié) .................................................................................................................................. 24 第六章 實(shí)驗(yàn)結(jié)果及對(duì)比 ............................................................................................................ 25 水 彩畫(huà)比較 ....................................................................................................................... 26 與轉(zhuǎn)描機(jī)技術(shù)比較 ............................................................................................................ 26 與 openCV 卡通化比較 ...................................................................................................... 27 與真實(shí)繪制的漫畫(huà)對(duì)比 .................................................................................................... 27 第七章 總結(jié)與展望 ................................................................................................................... 29 參考文獻(xiàn) ........................................................................................