计算机技术与发展Issue(1):58-64,7.DOI:10.3969/j.issn.1673-629X.2016.01.012
基于 Otsu 和小波算法实现肖像照黑白木刻风格
Realization of Converting Portrait Photos into White-line Woodcut Style Picture Based on Otsu and Wavelet Algorithm
摘要
Abstract
In order to integrate modern technology into traditional manual woodcut,an algorithm specialized in converting portrait photos into white-line woodcut style picture is developed. First,using an improved two-dimensional Otsu method to obtain the “main thresh-old” to segment the photo,the result is related to the photo’s details at specific local areas and the overall texture. In the optimal range based on the principle of statistics,“sub thresholds” are made in order to segment the photo and set grayscale color,the segmented pic-tures fuse with the one that segmented by “main threshold”,forming the photo “ woodcut texture”. Secondly,an improved directional wavelet edge detection algorithm is used,along the direction of the wavelet transformation,the maximum value is weighted so that the de-tected edge width and the detail numbers are controllable. The algorithm is applied to the “sub thresholds” fused picture and the photo, the results forming the “woodcut edge”. Finally,“woodcut texture” fuses with “woodcut edge”,forming the photo white-line woodcut style picture. It is shown in the experiments that this algorithm is flexible and practical.关键词
二维Otsu法/方向小波/主阈值/分阈值Key words
two-dimensional Otsu/directional wavelet/main threshold/sub thresholds分类
信息技术与安全科学引用本文复制引用
王晓迎,LIU Sixia,黄源..基于 Otsu 和小波算法实现肖像照黑白木刻风格[J].计算机技术与发展,2016,(1):58-64,7.基金项目
陕西省教育厅专项科学研究项目(2013JK0480) (2013JK0480)