An algorithm is proposed which sketch image effects processing is automatically and quickly realized by using image processing technology .The algorithm is based on manual sketch method and human visual characteris-tics.Firstly, the original image is converted to grayscale image .Gradient image of clear outline is generated by ex-tracted the edges in grayscale image using Sobel gradient operator and then inverts the result .Secondly , a smoother and softer blurred image is obtained from grayscale image by image smoothing and blurring using 11*11 neighbor-hood mean filter.Thirdly, to simulate holding a pencil and rub friction effect on paper , random dynamic lines im-age which is the same size as grayscale image is built by generated random lines dynamically for the entire image . Finally, gradient image, blurred image, and random dynamic lines image are superimposed to get the sketch with dynamic effects .The experimental results show that although the algorithm is implemented by a computer , and it can quickly and efficiently imitate hand painting and get a very actual sketch image .%提出了一种利用图像处理技术,自动快速实现图像素描特效处理算法。本算法根据手工素描方法以及人眼视觉特点,首先将原始图像进行灰度处理得到灰度图像,利用Sobel梯度算子对灰度图像进行边缘提取并反色处理,得到轮廓清晰的梯度图像。然后采用11*11邻域均值滤波对灰度图像进行平滑模糊处理得到更平滑、更柔和的模糊图像,为了模仿手握铅笔在纸上反复涂摩的效果,生成同原始图像大小的布满整个画面的随机动感线条图像。最后,把梯度图像、模糊图像、动感线条图像叠加生成具有动感效果的素描图像。实验结果表明:该算法能快速有效地实现由计算机自动模仿手握铅笔在纸上反复来回涂摩产生的动感素描图像。
展开▼