林潔 陳歡



摘 ?要: 采用前景目標提取的圖像風格化繪制算法實現平面設計過程中,沒有采用卷積線條的方式模擬真實鉛筆線條的繪畫過程,缺乏真實感,平面設計效果差。文中研究平面設計中圖像處理技術的應用過程,采用OpenCV軟件提供的轉換函數將RGB圖像轉換為YUV圖像后,變換并重新整合YUV色彩空間的色度信息與亮度信息,在此基礎上使用長度合理的直線卷積核卷積圖像梯度圖,生成平面設計的鉛筆畫草圖。以真實的鉛筆繪畫紋理為基礎構建鉛筆濾鏡數學模型,采用該模型與鉛筆濾鏡算法生成平面設計的鉛筆畫濾鏡,美化平面設計的鉛筆畫草圖創作過程。實驗結果表明,所研究的圖像處理技術創作的平面設計作品與鉛筆手繪效果接近,平均創作5幅平面設計的鉛筆畫的耗時約為3.0 s,是一種可靠、高效的平面設計技術。
關鍵詞: 平面設計; 鉛筆畫草圖; 圖像處理技術; 濾鏡生成; 目標提取; 信息整合; 模型構建
中圖分類號: TN911.73?34; TP181 ? ? ? ? ? ? ? ? ? 文獻標識碼: A ? ? ? ? ? ? ? ? ?文章編號: 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 ?引 ?言
計算機技術的發展帶動圖像處理技術的廣泛應用。圖像處理技術是計算機技術與繪畫的有效結合,該技術為平面設計提供數字化的創作方法,在較短的時間內即可獲取與平面設計者手繪作品相似度較高的創作[1]。并且,圖像處理技術為平面設計提供圖像修改、完善與存儲等功能,能夠有效改善平面設計作品的亮度、色彩平衡等效果[2]。關于圖像處理技術在平面設計中的應用方法較多,文獻[3]中描述的改進自然圖像平面設計的鉛筆畫生成方法,過分追求與平面設計的鉛筆畫的相似程度,存在線條中的斷點較多,導致描述的對象與原圖差距較大,不能有效描述圖像的關鍵特征;文獻[4]描述基于前景目標提取的圖像風格化繪制算法,未采用卷積線條的方式模擬真實平面設計的鉛筆畫的線條畫法,獲取的鉛筆線條繪畫效果比較順滑、完整,但缺乏手繪真實感。