摘要:图像几何变换是数字图像处理的基础,通过对缩放和旋转,可以修正图像的畸变变形,改变图像在画面中的比例关系,从而改善图像的显示情况。论文讨论了图像的缩放和旋转的原理,并对图像缩放和旋转运用了空间变换和灰度插值算法,灰度插值算法包括了最近邻插值和双线性插值;还讨论了BMP图像的基本构成,并在C#语言环境中设计了相应操作处理的函数类,便于对BMP图像的运算。在几何变换中,以图像的坐标原点为基准,将图像的上下左右均等地向内外收缩和向外扩大,使用最近邻和双线性两种插值法实现图像缩放;而在图像的旋转中仅运用了双线性插值法,使图像的旋转达到一个很好的效果。设计中运用面向对象的C#语言进行程序设计,对图像的处理计算自然顺畅,改善了图像的细节展示。8763
关键词:BMP;旋转;缩放;灰度插值;面向对象。
The processing of program design about the image scaling and rotating
Abstract: Image geometric transformation is the basis of digital image processing, which can improve the image by scaling and rotating the distorted deformation to change the proportion between the image and the whole picture. The principle of scaling and rotating has been discussed in this thesis,which base on the space transformation and gray level interpolation algorithm, and the gray level interpolation algorithm includes the nearest neighbor interpolation and bilinear interpolation. Besides, the basic components of BMP images has also has been discussed. And relevant function classes in the C# language environment has been projected in order to operate BMP images conveniently. The process of geometric transformation, based on the origin of the coordinates of the image, equally expands and contracts the image in every direction. And the geometric transformation realizes the image zooming in the methods of the nearest neighbor and bilinear interpolation. bilinear interpolation is used in the rotation of the image, and it makes the rotation of the image to achieve a good effect.In the program project, it makes successfully process images and perfectly display the images details by using of the object-oriented C # language.
Keywords: bitmap; Rotate; Zoom; Gray interpolation;Object Oriented.
目录
摘要 i
Abstract i
目录 iii
1 数字图像处理概述 1
1.1 数字图像技术综述 1
1.1.1 图像处理技术 1
1.1.2 数字图像 2
1.2 BMP图像结构 4
1.2.1 BMP文件组成 4
1.2.2 BMP的存储算法 6
1.3 C#语言基础 6
1.3.1 面向对象的C#语言 7
1.3.2 C#的图像处理基础 8
2 图像的缩放和旋转原理与算法 9
2.1 数字图像原理与算法 9
2.2 图像缩放 11
2.2.1 缩放原理 11
2.2.2 缩放算法 12
2.3 图像旋转 13
2.3.1 旋转原理 13
2.3.2 旋转算法 13
3 图像的缩放和旋转程序设计 15
3.1 Bitmap类设计 15
3.1.1 Bitmap类 15
3.1.2 BitmapData类 16 C#图像的缩放与旋转处理程序设计:http://www.youerw.com/jisuanji/lunwen_7214.html