林潔 陳歡
摘 ?要: 采用前景目標(biāo)提取的圖像風(fēng)格化繪制算法實(shí)現(xiàn)平面設(shè)計(jì)過程中,沒有采用卷積線條的方式模擬真實(shí)鉛筆線條的繪畫過程,缺乏真實(shí)感,平面設(shè)計(jì)效果差。文中研究平面設(shè)計(jì)中圖像處理技術(shù)的應(yīng)用過程,采用OpenCV軟件提供的轉(zhuǎn)換函數(shù)將RGB圖像轉(zhuǎn)換為YUV圖像后,變換并重新整合YUV色彩空間的色度信息與亮度信息,在此基礎(chǔ)上使用長度合理的直線卷積核卷積圖像梯度圖,生成平面設(shè)計(jì)的鉛筆畫草圖。以真實(shí)的鉛筆繪畫紋理為基礎(chǔ)構(gòu)建鉛筆濾鏡數(shù)學(xué)模型,采用該模型與鉛筆濾鏡算法生成平面設(shè)計(jì)的鉛筆畫濾鏡,美化平面設(shè)計(jì)的鉛筆畫草圖創(chuàng)作過程。實(shí)驗(yàn)結(jié)果表明,所研究的圖像處理技術(shù)創(chuàng)作的平面設(shè)計(jì)作品與鉛筆手繪效果接近,平均創(chuàng)作5幅平面設(shè)計(jì)的鉛筆畫的耗時(shí)約為3.0 s,是一種可靠、高效的平面設(shè)計(jì)技術(shù)。
關(guān)鍵詞: 平面設(shè)計(jì); 鉛筆畫草圖; 圖像處理技術(shù); 濾鏡生成; 目標(biāo)提取; 信息整合; 模型構(gòu)建
中圖分類號(hào): TN911.73?34; TP181 ? ? ? ? ? ? ? ? ? 文獻(xiàn)標(biāo)識(shí)碼: A ? ? ? ? ? ? ? ? ?文章編號(hào): 1004?373X(2019)15?0063?05
Application of image processing technology in graphic design
LIN Jie, CHEN Huan
(Xiangsihu College of Guangxi University for Nationalities, Nanning 530008, China)
Abstract: In the process of graphic design, the image stylized drawing algorithm based on foreground object extraction is used to realize graphic design, but convolution lines are not used to simulate the drawing process of real pencil lines. The drawing effect of pencil lines lacks authenticity and the effect of graphic design is poor. The application process of image processing technology in graphic design is studied. RGB images are converted into YUV images by the conversion function provided by OpenCV software. After that, the chrominance information and brightness information of YUV color space are converted and reintegrated. On this basis, the gradient image of straight?line convolution core with reasonable length is used to generate a pencil sketch for graphic design, and a mathematical model of pencil filter is constructed on the basis of real pencil drawing texture. The pencil filter for graphic design is generated by using this model and pencil filter algorithm. The creation process of pencil sketch in graphic design is beautified. The experimental results show that the graphic design works created by the image processing technology studied in this paper are close to the pencil hand?drawing effect, and the average consuming time used to create five pencil drawings of graphic design is only about 3.0 s, which is a reliable and efficient graphic design technology.
Keywords: graphic design; pencil drawing sketch; image processing technology; filter generation; target extraction; signal integration; model establishment
0 ?引 ?言
計(jì)算機(jī)技術(shù)的發(fā)展帶動(dòng)圖像處理技術(shù)的廣泛應(yīng)用。圖像處理技術(shù)是計(jì)算機(jī)技術(shù)與繪畫的有效結(jié)合,該技術(shù)為平面設(shè)計(jì)提供數(shù)字化的創(chuàng)作方法,在較短的時(shí)間內(nèi)即可獲取與平面設(shè)計(jì)者手繪作品相似度較高的創(chuàng)作[1]。并且,圖像處理技術(shù)為平面設(shè)計(jì)提供圖像修改、完善與存儲(chǔ)等功能,能夠有效改善平面設(shè)計(jì)作品的亮度、色彩平衡等效果[2]。關(guān)于圖像處理技術(shù)在平面設(shè)計(jì)中的應(yīng)用方法較多,文獻(xiàn)[3]中描述的改進(jìn)自然圖像平面設(shè)計(jì)的鉛筆畫生成方法,過分追求與平面設(shè)計(jì)的鉛筆畫的相似程度,存在線條中的斷點(diǎn)較多,導(dǎo)致描述的對(duì)象與原圖差距較大,不能有效描述圖像的關(guān)鍵特征;文獻(xiàn)[4]描述基于前景目標(biāo)提取的圖像風(fēng)格化繪制算法,未采用卷積線條的方式模擬真實(shí)平面設(shè)計(jì)的鉛筆畫的線條畫法,獲取的鉛筆線條繪畫效果比較順滑、完整,但缺乏手繪真實(shí)感。