版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、yuan, an increase of 17.5%; local government general budget revenue of 500 million yuan, . painting, model culture creates new ma church community, creating lake scenic spot culture education base, received high evaluation from provincial and municipal discipline inspection commission, the people
2、9;s daily special report. constantly promote independent commission against corruption culture construction to rural extends, created established dahlin rural industry park independent commission against corruption culture positions, formed has a support "service low double excellent" of m
3、embers lead team, constantly perfect and established park funds assets management, and village audit supervision, and villagers democratic financial, system, strengthening park party, and chief, and financial, full public, powerful to guarantees has new rural construction, by city rural style clean
4、government inspection unit led of height evaluation. through the implementation of honest and clean government cultural construction, and effectively educate the broad masses of party members and cadres and consciously regulated behavior and discipline, honesty in politics and culture to create a go
5、od atmosphere and fresh development environment. although we in implement implementation independent commission against corruption guidelines aspects made has must effectiveness, but away from superior of requirements also exists must of distance, main performance for: a is system enough sound, educ
6、ation, and supervision, and prevention, and punishment, aspects long-term mechanism also enough perfect, especially in enrollment bid work regulatory aspects also needed strengthening; ii is regulatory supervision exists lost of yu wide, and lost of yu soft, investigation illegal disciplinary case o
7、f efforts also needed strengthening, individual sector and cadres also different degree exists treat gift, not to benefits not do, and mess do of phenomenon; three for honest work is the new situations and new problems in finding timely enough, treatment measures are not strong enough. to solve thes
8、e problems, we will proceed from the following five aspects of rectification, make sure to implement the provisions of the code. (a) deepening the learning, enhance the consciousness of honesty in politics. to create event as an opportunity to excel and learning party, further increasing the governa
9、nce capability and advanced construction, reinforced rules of the broad masses of party members and cadres awareness, sense of responsibility, sense of honor, improve working ability and level of scientific development. should make full use of meetings, in particular central group learning opportuni
10、ty, further strengthening the study and education of the code, the intensive warning education, education the majority of party members and cadres known fear, knew fear, honesty in politics of tension the strings, consciousness and enhancing the implementation of the initiative. also, pay attention
11、to apply what they have learned, consciously study results into planning work, new ideas,基于matlab的图像处理的课程设计(2009-01-16 17:02:21)标签:matlab 图像处理 课程设计 文化 基于matlab的图像处理的课程设计 一、课程设计的目的:综合运用matlab工具箱实现图像处理的gui程序设计。二、课程设计的基本要求1)熟悉和掌握matlab 程序设计方法2)掌握matlab gui 程序设计3)熟悉matlab图像处理工具
12、箱4)学会运用matlab工具箱对图像进行处理和分析三、课程设计的内容要求利用matlab 设计实现图像处理的图形用户界面,利用图像处理工具箱实现以下的图像处理功能:双击打开matlab 7.0filenewgui单击,调整axes1大小单击ok,调整按钮大小和颜色,修改名称再建axes2单击ok,调整按钮大小和颜色,修改名称保存viewm-file edit写程序 1)图像的读取和保存。在function open_callback(hobject, eventdata, handles)后面输入如下程序name,path=uigetfile('*.*','
13、');file=path,name;axes(handles.axes1);x=imread(file); %读取图像handles.img=x;guidata(hobject, handles);imshow(x);
14、%显示图像title('打开'); 在function save_callback(hobject, eventdata, handles)后面输入如下程序name,path=uigetfile('*.*','');file=path,name;axes(handles.axes1);x=imread(file);handles.img=x;guidata(hobject, handles);imshow(x);imwrite(x,'new.jpg');
15、0; %保存图像title('保存'); 2)设计图形用户界面,让用户能够对图像进行任意的亮度和对比度变化调整,显示和对比变换前后的图像。在function liangdu_callback(hobject, eventdata, handles) 后面输入如下程序axes(handles.axes2);x=(handles.img);y=imadjust(x,0.15 0.9, 0 1); %增亮图像imshow(y);ti
16、tle('亮度') 在function huidu_callback(hobject, eventdata, handles) 后面输入如下程序axes(handles.axes2);x=rgb2gray(handles.img); %rgb图像转换为灰度图像imshow(x);title('灰度') 3)设计图形用户界面,让用户能够用鼠标选取图像感兴趣区域,显示和保存该选择区域。在function cut_ca
17、llback(hobject, eventdata, handles)后面输入如下程序axes(handles.axes2);x=imcrop(handles.img); %截图imshow(x);imwrite(x,'cut.jpg'); %保存
18、图像title('截图'); 4)编写程序通过最近邻插值和双线性插值等算法将用户所选取的图像区域进行放大和缩小整数倍的操作,并保存,比较几种插值的效果。在function nearfangda_callback(hobject, eventdata, handles) 后面输入如下程序axes(handles.axes2);x=imresize(handles.img,2,'nearest'); %最近邻插值法放大imsh
19、ow(x);imwrite(x,'nearfangda.jpg')title('最近邻插值法放大'); 在function nearsuoxiao_callback(hobject, eventdata, handles) 后面输入如下程序axes(handles.axes2);x=imresize(handles.img,0.5,'nearest'); %最近邻插值法缩小imsho
20、w(x);imwrite(x,'nearsuoxiao.jpg')title('最近邻插值法缩小'); 在function doublefangda_callback(hobject, eventdata, handles) 后面输入如下程序axes(handles.axes2);x=imresize(handles.img,5,'bilinear'); %双线性插值法放大图像imshow(x);imwri
21、te(x,'doublefangda.jpg');title('双线性插值法放大'); 在function doublesuoxiao_callback(hobject, eventdata, handles) 后面输入如下程序axes(handles.axes2);x=imresize(handles.img,0.5,'bilinear'); %双线性插值法缩小图像imshow(x);imwr
22、ite(x,'doublesuoxiao.jpg');title('双线性插值法缩小'); 5)图像直方图统计和直方图均衡,要求显示直方图统计,比较直方图均衡后的效果。在function zhifangtu_callback(hobject, eventdata, handles) 后面输入如下程序set(handles.axes2,'handlevisibility','on');axes(handles.axes2);x=imhist(handles.img);
23、0; %直方图统计x1=x(1:10:256);horz=1:10:256;bar(horz,x1);%axis(0 255 0 150000);set(handles.axes2,'xtick',0:50:255);%set(handles.axes2,'ytick',0:2000:15000);set(handles.axes2,'handlevis
24、ibility','off'); 在function junheng_callback(hobject, eventdata, handles) 后面输入如下程序set(handles.axes2,'handlevisibility','on');axes(handles.axes2);h=histeq(handles.img);
25、; %直方图均衡imshow(h);%set(handles.axes2,'ytick',0:2000:15000);set(handles.axes2,'handlevisibility','off'); 6)能对图像加入各种噪声,并通过几种滤波算法实现去噪并显示结果。比较去噪效果。在function gaussian_callback(hobject, eventdata, handles) 后面输入如下程序axes(handles.axes2);x=(handles.img);y=i
26、mnoise(x,'gaussian',0,0.05); %加高斯噪声imshow(y);imwrite(y,'gaussian.jpg');title('加高斯噪声') 在function salt_callback(hobject, eventdata, handles) 后面输入如下程序axes(handles.axes2);x=(handl
27、es.img);y=imnoise(x,'salt & pepper',0.04); %加椒盐噪声imshow(y);imwrite(y,'salt.jpg');title('加椒盐噪声') 在function medfilt_callback(hobject, eventdata, handles) 后面输入如下程序axes(handles.axes2);x=(
28、handles.img);y=imnoise(x,'salt & pepper',0.04); %加椒盐噪声z=medfilt2(y,5 5,'symmetric');
29、0; %中值滤波imshow(z);imwrite(z,'medfilt.jpg');title('中值滤波'); 在function wiener_callback(hobject, eventdata, handles) 后面输入如下程序axes(handles.axes2);x=(handles.img);y=imnoise(x,'gaussian',0,0.05);
30、; %加高斯噪声z=wiener2(y,5 5); %自适应滤波imshow(z);imwrite(z,'wiener.jpg');title('自适应滤波') 7)频谱处理,能够分析图
31、像频谱,显示频谱图。在function pinputu_callback(hobject, eventdata, handles) 后面输入如下程序axes(handles.axes2);x=(handles.img);j2=fft2(x); %傅立叶变换k2=fftshift(j2);
32、 %转换数据矩阵imshow(log(abs(k2),); %显示频谱图title('频谱图'); 8)设计巴特沃斯低通滤波对图像进行低通滤波处理,显示结果。在function butter
33、di_callback(hobject, eventdata, handles) 后面输入如下程序axes(handles.axes2);x=(handles.img);y1=imnoise(x,'salt & pepper'); % 叠加椒盐噪声f=double(y1); % 数据类型转换,matlab不支持图像的无符号整型的计算g=fft2(f);
34、60; % 傅立叶变换g=fftshift(g); % 转换数据矩阵m,n=size(g);nn=2;
35、60; % 二阶巴特沃斯(butterworth)低通滤波器d0=50; %截止频率为50m=fix(m/2); n=fix(n/2);for i=1:m &
36、#160; for j=1:n d=sqrt(i-m)2+(j-n)2); h=1/(1+0.414*(d/d0)(2*nn); % 计算低通滤波器传递函数
37、 result(i,j)=h*g(i,j); endendresult=ifftshift(result);y2=ifft2(result);y3=uint8(real(y2);imshow(y3);
38、160; % 显示滤波处理后的图像imwrite(y3,'butterdi.jpg');title('巴特沃斯低通滤波') 9)设计高斯高通虑波器,显示结果。axes(handles.axes2);x=(handles.img);y1=imnoise(x,'gaussian');
39、; %加高斯噪声f=double(y1); % 数据类型转换k=fft2(f);
40、160; % 傅立叶变换g=fftshift(k); % 转
41、换数据矩阵m,n=size(g);nn=2;d0=25; %截止频率为25m=fix(m/2); n=fix(n/2);for i=1:m
42、60; for j=1:n d=sqrt(i-m)2+(j-n)2); % 计算高通滤波器传递函数 if d<=d0
43、; h=0; else h=1; end result(i,j)=h*g(i,j);
44、 endendresult=ifftshift(result);y2=ifft2(result);y3=uint8(real(y2);imshow(y3); % 显示滤波处理后的图像imwrite(y3,'g
45、aussiangao.jpg');title('高斯高通滤波') 四、课程设计的体会 通过这次基于matlab的图像处理的课程设计,熟悉和掌握了matlab 程序设计方法、matlab gui 程序设计、matlab图像处理工具箱,了解了图形用户界面的制作的设计原则和一般步骤:简单性、一致性、习常性、响应要迅速、连续等原则,学会了运用matlab工具箱对图像进行处理和分析。放大缩小图像时使用了两种方法,最近邻插值法比双线性插值法运行时间快;就效果而言,使用最邻近插值法确实出现了锯齿,但并不明显,而双线
46、性插值则几乎没有什么改变。在做到加高斯噪声和椒盐噪声时,程序运行较慢,我认为这可能有两方面的原因:一是程序的问题,二是计算机的反应速度。通过不同的加噪方法,得到了不同的加噪效果;不同的滤波方法,得到的滤波效果图也不同。中值滤波较自适应滤波运行速度快。下面是通过不同的方法放大、缩小、加噪、滤波后保存的图像:(其中macs、bacteria为原图) 五、附录1、参考书目:1) matlab语言及其在电子信息工程中的应用 王洪元主编 清华大学出版社2) matlab在数字图像处理中的应用 机械工业出版社2、源代码采用灰度变换的方法增强图像的对比度:i=imread('r
47、ice.tif');imshow(i);figure,imhist(i);j=imadjust(i,0.15 0.9, 0 1);figure,imshow(j);figure,imhist(j);模拟图像受高斯白噪声和椒盐噪声的影响:i=imread('eight.tif');imshow(i) ;j1=imnoise(i,'gaussian',0,0.02); % 叠加均值为0,方差为0.02的高斯噪声figure,imshow (
48、j1);j2=imnoise(i,'salt & pepper',0.04); % 叠加密度为0.04的椒盐噪声。figure,imshow(j2);new measures to promote work, the courage to take responsibility, dare to break hard to ensure district, government decisions and arrangements to implement. (b) strengthen
49、ing supervision, severely punish acts of violation. one is to open the channels of supervision. vigorously promote the party affairs public, open, widely accepted supervision by the masses, pay attention to social groups and public opinion supervision, the powerful force formed to urge party members
50、 and leading cadres properly exercise their powers. second, strong supervision and inspection. democratic life into full play, important briefings, reports related to personal matters and evaluation of cadres ' study of inner-party supervisory system, a comprehensive grasp of guidelines for the
51、implementation of the independent commission against corruption-related cases of leading cadres of party members, focus on strengthening key areas of project selection, funding, officials monitor, detect and rectify the problem, promote honesty in politics. third, strengthen disciplinary investigati
52、on. seriously the implementation of ji .recently, the county leading bodies at the county level to carry out "three trees" practice, which is to improve the governing ability and promoting the development of xx effective measure. i carefully follow your deployment requirements, and actively pa
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 软件代理合同完整版3篇
- 砖混结构房屋施工合同
- 二零二四年度知识产权许可与技术秘密保密协议
- 2024年度数据处理服务居间合同2篇
- 商业合作协议合同
- 甲方与乙方就2024年度版钢结构厂房项目的质量保修合同2篇
- 疼痛心理治疗
- 青年员工职业规划
- 员工培训制度规划方案
- 2024年度融资租赁设备担保规定合同3篇
- DB11T 2000-2022 建筑工程消防施工质量验收规范
- 人教版数学三年级上册《分数的初步认识》课件 (共7张PPT)
- 2021小学语文《习作例文-风向袋的制作》说课稿及教学反思
- 外科学教学课件:周围神经损伤
- 杆塔分解组立
- JJG 861-2007 酶标分析仪检定规程-(高清现行)
- 13培智二年级语文上册《土木火》教案
- 中医气功学导论期末试卷附答案
- 人类命运共同体视域下小学国际理解教育的实践探索
- 50Hz微电子相敏轨道电路课件
- 中考数学阅读理解型问题复习
评论
0/150
提交评论