1、摘要 I 图像特效输出的设计与实现 摘要 随着计算机电子技术和计算机技术的发展,数字图像处理进入高速发展时期。 由于某些特殊原因,一些图像的效果不能够达到人们的要求,因此需要对图像做一些再加工,即利用计算机进行特殊的处理,称为图像特效处理。随着对数字图像处理研究的深入,图像特效处理的应用越来越广泛,其发展状况也受到了人们的广泛关注。 本文针对目前图像特效处理的需 求,主要研究几种基本的数字图像处理算法,以达到人们所期望得到的各种不同的效果。并在基于 Windows 系统的 Visual C+6.0 集成开发环境下,使用 VC 编 码实现这些算法。 在 点运算处理 中, 介绍了灰度直方图、灰度分
2、布均衡化、灰度化处理、灰度线性变换和二值化处理几种算法 , 算法设计原理是将输入像素点的灰度值通过算法实现改变其相应输出点的灰度值。在几何变换中,介绍了图像 的 平移、 图像的缩放和 图像 的 镜像变换 几种算法,这些算法主要是根据某种矩阵运算来写的,有其固定的数学计算方法。在图像的增强中,介绍了图形的平滑和图像的锐化算法,其算法的设计原理是根据一个固定小区域的几个像素灰度值设置某个像素的灰度值, 通常有其固定模板。在图像特效处理中,介绍了图像反色、图像曝光、浮雕处理、霓 虹处理和马赛克几种算法,这些算法主要是针对真彩色图像,通过固定的公式计算改变其像素的 R、 G、 B 的分量值,从而改变像
3、素的颜色,达到不同的颜色变换效果。 本文具体给出了这 些算法的设计思想及算法描述,并通过程序实现。最后将其效果图与原始图像 进行了比较。 关键词 数字图像处理; 图像 算法; 图像特效处理; Visual C+6.0 II Abstract With the development of the computer electronics and computer technology, digital image processing into the high-speed development period. For some special reasons, the effect of
4、a number of images can not be met, and thus the need for images to do some further processing, namely the use of special computer processing, known as image processing effects. With the digital image processing to study in depth, image effects processing of the application of more and more widely, a
5、nd its development has been the peoples attention. In this paper, the image effects to deal with the current demand for basic research in several digital image processing algorithms in order to achieve what people expect different results. Processing of the points on the histogram, a balanced distri
6、bution of gray, gray-scale processing, gray-linear transformation and binarization processing of several algorithms. Algorithm design principle is to enter the gray value of pixels through the algorithm to change its output points corresponding gray value. In the geometric transformation, the introd
7、uced image translation, scaling and image of the mirror image transform several algorithms are mainly based on a matrix calculation to write, has its fixed mathematical calculation. Enhancement of the image on the smooth graphics and image sharpening algorithm. The design principle of the algorithm
8、is based on a fixed number of small regions of a pixel value of gray-scale pixel value, usually a fixed template. Effects in image processing, introduced the anti-color images, image exposure, relief treatment, processing and mosaic neon several algorithms, These algorithms are mainly for the true color images, through a fixed formula to change its pixel R, G, B sub-value, thus changing the color of pixels to transform the effect of different colors.