摘 要
本文对图形图像处理系统的发展现状和所采用的主要技术进行了详细分析,确定了相应的结构和主要功能,以及实际开发中所采取的技术。系统在Windows XP平台下实现,本课题是采用Visual C++作为编程工具,采用面向对象的程序设计技术实现一个图形绘制和图像处理的应用软件。主要工作分为三类,包括基本图形绘制与编辑、简单的图像处理、图像格式的转换。图形方面主要是设计图形基类,以及继承图形基类的具体图形类。通过对独立功能的封装,可以为今后需要的图形图像的应用奠定基础。系统的优点有:充分体现了面向对象的设计思想,充分运用了C++的特性。程序结构清晰,可读性好,程序中做了充分的注释。
最后,对系统进行测试表明,系统功能达到了预期的要求,界面友好,操作简便,运行也较稳定,是一个完成基本功能的图形图像系统。 总体上,本文介绍了系统开发设计的全过程和设计过程中部分代码,对系统中采用的关键技术也作了一些必要的说明,对图像变换的基本原理,图像处理的基本原理和各种图像格式做了详细的阐述。 关键词:图像处理系统,图像显示,图片格式转换。
Abstract
This article the detailed analysis about graph image processing system development and using of the key technology,identify the corresponding structure and central function, as well as the system adopts technology in the actual
development. The system realizes under the Windows XP platform, the topic use Visual C++ as a programming tool, use object-oriented programming techniques to achieve a graphic and image processing software. Major work is divided into three categories, basic drawing and editing graphics, simple image processing, and image format conversion. The graph aspect is designs the graph base class , as well as inherits the graph base class’s specific graph class. Through independent function's encapsulation, for the future’s needs of the graphic images lays the foundation. The system merit ’s thought application of the c++ properties, Program’s structure is clear, good readability, codes in the program. Easy expansion and transplantation. Finally, system’s testing shows, system’s functions achieve the expected demand, friendly interface, and the operation is simple, also a much stable operation, it process and part of the process of designing code, it made some necessary explanations about key technology in the system, it made the detailed description to image transform of the basic principle, the image processing basic principle and various image formats.
Key word: The imagery processing system, image display, image transforms.
目 录
摘 要 ................................................................................................................................................. I Abstract ......................................................................................................................................... II 第一章 图像处理系统 .................................................................................................................... 1
1.1 概述 .................................................................................................................................. 1 1.2 系统分析 .......................................................................................................................... 1
1.2.1 需求分析 .............................................................................................................. 1 1.2.2 可行性分析 .......................................................................................................... 1 1.3 总体设计 ........................................................................................................................ 1
1.3.1 项目规划 .............................................................................................................. 1 1.3.2 系统功能架构图 .................................................................................................. 2 1.4 系统设计 .......................................................................................................................... 3
1.4.1 设计目标 .............................................................................................................. 3 1.4.2 开发及运行环境 .................................................................................................. 3 1.5 技术准备 .......................................................................................................................... 3
1.5.1 基本绘图操作 ...................................................................................................... 3 1.5.2 内存画布的设计 .................................................................................................. 3 1.5.3 自定义全局函数 .................................................................................................. 4 1.5.4 自定义菜单 .......................................................................................................... 5 1.5.5 自定义工具栏 .................................................................................................... 11 1.6主要功能模块的设计 ..................................................................................................... 12
1.6.1 系统架构设计 .................................................................................................... 12 1.6.2公共模块设计 ..................................................................................................... 14
1
1.6.3 主窗体设计 ...................................................................................................... 14
参考文献: .................................................................................................................................... 18 致谢 ................................................................................................................................................ 19
第一章 图像处理系统
1.1 概述
图像处理技术一直是困扰Visual C++初学者的一个难题,在Visual C++中,没有一个完善的控件能够显示和处理各种格式的图像,有时用户需要了解各种图像的文件格式,这极大地增加了初学者的学习难度。基于此,设计一个图像处理软件。
1.2 系统分析
1.2.1 需求分析
? 通过调查,要求系统具有以下功能。 ? 显示BMP、JPEG 、GIF等各种格式的图像。 ? 实现BMP与JPEG、GIF图像的批量转换。
? 实现对位图的旋转、反色、灰度化、线性变换等各种操作。 ? 实现手写数字的识别。 1.2.2 可行性分析
为了降低程序开发的难度,使用微软公司的GDI+。GDI+又称为GDIPlus,是微软公司.NET构架的一部分,它封装了各种图像的处理技术。通过使用GDI,用户可以非常方便地实现图像的显示与转换。虽然GDI+属于.NET框架的一部分,但是用户可以在非.NET环境下使用GDI+,有关