基于小波变换的医学图像分割系统的研究(8)

2020-02-20 13:52

河南科技大学毕业设计(论文) 致 谢

本文的完成得到众多老师和亲人朋友的支持与帮助,借此机会:

深深感谢我的导师侯海燕老师对我设计上的悉心指导,从论文设计工作的进行,到毕业论文的撰写和修改,倾注了侯老师的大量心血。她对工作严谨认真,一丝不苟的态度,更是我学习的榜样。

感谢同组的同学对我的帮助,他们使我得到许多启示。这是一个团结向上的集体,在大学度过这四年给我留下终生难忘的回忆。很荣幸结识各位师长和同学,正是这种愉悦的氛围,让我的大学生涯充满快乐。

最后,我要特别感谢我的父母,我所有的成绩都是他们的支持和鼓励下才能取得的,他们的支持和鼓励,使我一直不畏前路的任何困难,勇往直前,奋斗不息。

31

河南科技大学毕业设计(论文) 附 录

%读入图像

% --- Executes on button press in pushbutton1.

function pushbutton1_Callback(hObject, eventdata, handles) % hObject handle to pushbutton1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global im

[filename,pathname] =...

uigetfile({'*.jpg';'*.bmp';'*.gif'; '*.tif'},'选择图像'); str=[pathname filename]; im=imread(str); axes(handles.axes1); imshow(im);

%图像分割

% --- Executes on button press in pushbutton3.

function pushbutton3_Callback(hObject, eventdata, handles) % hObject handle to pushbutton3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global im

[counts,x] = imhist(im); J1=imhist(im); J2=medfilt2(im);

J3=imadjust(J2,[0.15 0.9],[0 1]); figure,imshow(J3); J5=imhist(J3); % figure,plot(J5); n=4;

wname='sym8';

[xd,cxd,lxd]=wden(J5,'rigrsure','s','mln',n,wname); % figure,plot(xd);

[C,L]=wavedec(xd,5,'db4'); %得到xd信号的小波系数 cA5=appcoef(C,L,'db4',5); %得到xd信号的近似系数 cD5=detcoef(C,L,5); cD4=detcoef(C,L,4); cD3=detcoef(C,L,3); cD2=detcoef(C,L,2); cD1=detcoef(C,L,1);

32

河南科技大学毕业设计(论文) A5=wrcoef('a',C,L,'db4',5);%重构第五层小波近似分量 % figure,plot(A5);

A6=diff(A5); % figure; % plot(A6)

k=1;

for i=5:250 if

((A6(i-4)<0)&&(A6(i-3)<0)&&(A6(i-2)<0)&&(A6(i-1)<0)&&(A6(i)<0)&&(A6(i+1)>0)&&(A6(i+2)>0)&&(A6(i+3)>0)&&(A6(i+4)>0)) k=k+1;

th(k)=i; end end

[r,s]=size(J3) M=length(th);

th(1)=0;th(k+1)=256; J6=J3; for i=1:r

for j=1:s

for k=1:M-1

if ((J3(i,j)>=th(k))&&(J3(i,j)

axes(handles.axes2); imshow(J6);

%退出

% --- Executes on button press in pushbutton4.

function pushbutton4_Callback(hObject, eventdata, handles) % hObject handle to pushbutton4 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) close(gcf)

33


基于小波变换的医学图像分割系统的研究(8).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2、工程应用材料的失效分析

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: