资源描述:
《滤波器设计实验报告-一张图像的各种滤波器的设计与实现》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、广东药学院实验报告实验九一张图像的各种滤波器的设计与实现班级:生物医学工程09姓名:学号:2011年12月21日1实验目的12.实验内容与要求13.实验内容与实验步骤23.1GUI界面的形成:23.2各种滤波器实现代码:43.2.1.三维转二维43.2.2.加入椒盐噪声53.2.3.图像读入63.2.4.图像信息查询63.2.5.进行高斯滤波73.2.6.进行sobel滤波83.2.7.进行prewitt滤波93.2.8.进行拉普拉斯滤波103.2.9.进行高斯拉普拉斯滤波113.2.10.进行均值滤波123.2.11.进行模糊滤波133.2.12.进行高通高斯滤波143.2.13.进行中
2、值滤波153.2.14.彩色图像转灰度图像163.2.15.灰度图像转为索引图像173.2.16.图像转为二值图像174.实验心得:181实验目的1学会使用MATLAB的M文本和GUI界面的设计2.学会各种滤波器函数的调用与设计3.对各种滤波器的效果进行对比分析2.实验内容与要求1、位图格式图像基本操作2、图像的读取3、各种滤波器的实现4、滤波器效果的比较。3.实验内容与实验步骤3.1GUI界面的形成:实验代码:functionvarargout=untitled(varargin)%UNTITLEDM-fileforuntitled.fig%UNTITLED,byitself,creat
3、esanewUNTITLEDorraisestheexisting%singleton*.%%H=UNTITLEDreturnsthehandletoanewUNTITLEDorthehandleto%theexistingsingleton*.%%UNTITLED('CALLBACK',hObject,eventData,handles,...)callsthelocal%functionnamedCALLBACKinUNTITLED.Mwiththegiveninputarguments.%%UNTITLED('Property','Value',...)createsanewUNTI
4、TLEDorraisesthe%existingsingleton*.Startingfromtheleft,propertyvaluepairsare%appliedtotheGUIbeforeuntitled_OpeningFunctiongetscalled.An%unrecognizedpropertynameorinvalidvaluemakespropertyapplication%stop.Allinputsarepassedtountitled_OpeningFcnviavarargin.%%*SeeGUIOptionsonGUIDE'sToolsmenu.Choose"G
5、UIallowsonlyone%instancetorun(singleton)".%%Seealso:GUIDE,GUIDATA,GUIHANDLES%Edittheabovetexttomodifytheresponsetohelpuntitled%LastModifiedbyGUIDEv2.513-Dec-201120:58:27%Begininitializationcode-DONOTEDITgui_Singleton=1;gui_State=struct('gui_Name',mfilename,...'gui_Singleton',gui_Singleton,...'gui_
6、OpeningFcn',@untitled_OpeningFcn,...'gui_OutputFcn',@untitled_OutputFcn,...'gui_LayoutFcn',[],...'gui_Callback',[]);ifnargin&isstr(varargin{1})gui_State.gui_Callback=str2func(varargin{1});endifnargout[varargout{1:nargout}]=gui_mainfcn(gui_State,varargin{:});elsegui_mainfcn(gui_State,varargin{:});e
7、nd%Endinitializationcode-DONOTEDIT%---Executesjustbeforeuntitledismadevisible.functionuntitled_OpeningFcn(hObject,eventdata,handles,varargin)%Thisfunctionhasnooutputargs,seeOutputFcn.%hObjecthandletofigure%eventd