1、 题目:题目: 数字图像处理课程设计数字图像处理课程设计 姓 名: 学 号: 班 级: 指导老师: 专 业: 信息工程(系统控制方向) 2013 年 12 月 19 日 一、设计目标 实现简单的数字图像处理功能 1、直方图均匀化; 2、显示原图; 3、比例放大 5 倍; 4、非比例放大到 800*800 像素; 5、线性变换; 6、检测图像中的点、线和边缘;分别采用 SobelSobel,PrewittPrewitt,RobertRobert 算子算子进行边缘 锐化。 二、设计内容及要求: (1) 、独立设计方案,实现对图像的 4 种及以上处理(比如:底片化效果、灰度增强、图像 复原等等) ,
2、并至少对其中一种处理方法独立编程实现,不能完全使用工具箱中的函数。 (2) 、参考 photoshop 软件或参考 matlab 软件中 GUI 设计,设计软件界面,对处理前后的 图像以及直方图等进行对比显示; (3) 、将实验结果与其他软件实现的效果进行比较、分析。总结设计过程所遇到的问题。 (4) 、 可设计菜单式界面, 在功能较少的情况下, 也可以设计按键式界面, 视功能多少而定。 三、设计过程及步骤 1)使用图形用户界面开发环境(GUIDE)中的开发工具,设计 GUI 布局; 2)创建 GUI 应用程序,在自动生成的 M 文件中编写程序代码及调用相关函数,运行结果如 下: 直方图均匀化
3、 显示原图 非比例放大 比例放大 线性变换 边缘锐化 四、四、MATLAB源代源代码码 function varargout = untitled(varargin) % UNTITLED MATLAB code for untitled.fig % UNTITLED, by itself, creates a new UNTITLED or raises the existing % singleton*. % % H = UNTITLED returns the handle to a new UNTITLED or the handle to % the existing singlet
4、on*. % % UNTITLED(CALLBACK,hObject,eventData,handles,.) calls the local % function named CALLBACK in UNTITLED.M with the given input arguments. % % UNTITLED(Property,Value,.) creates a new UNTITLED or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the
5、 GUI before untitled_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to untitled_OpeningFcn via varargin. % % *See GUI Options on GUIDEs Tools menu. Choose “GUI allows only one % instance to run (singleton)“. % % See a
6、lso: GUIDE, GUIDATA, GUIHANDLES % Edit the above text to modify the response to help untitled % Last Modified by GUIDE v2.5 06-Dec-2013 13:54:24 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct(gui_Name, mfilename, . gui_Singleton, gui_Singleton, . gui_OpeningFcn, untitled_OpeningFcn, . gui_OutputFcn, untitled_OutputFcn, . gui_LayoutFcn, , . gui_Callback,