ImageVerifierCode 换一换
格式:DOCX , 页数:12 ,大小:16.70KB ,
资源ID:8229530      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/8229530.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(医学图像预处理程序.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

医学图像预处理程序.docx

1、医学图像预处理程序function varargout = tuxiangyuchuli(varargin)%TUXIANGYUCHULI M-file for tuxiangyuchuli.figor raises% TUXIANGYUCHULI, by itself, creates a new TUXIANGYUCHULI the existing% singleton*.% H = TUXIANGYUCHULI returns the handle to a new TUXIANGYUCHULI or the handle to% the existing singleton*.%a

2、newpassed via syntax% TUXIANGYUCHULI(Property,Value,.) createsTUXIANGYUCHULI using the% given property value pairs. Unrecognized properties are % varargin to tuxiangyuchuli_OpeningFcn. This calling produces a% warning when there is an existing singleton*.%andthe given% TUXIANGYUCHULI(CALLBACK) TUXIA

3、NGYUCHULI(CALLBACK,hObject,.) call the% local function named CALLBACK in TUXIANGYUCHULI.M with input% arguments.% *See GUI Options on GUIDEs Tools menu. Choose GUI allows only one% instance to run (singleton).% See also: GUIDE, GUIDATA, GUIHANDLES% Edit the above text to modify the response to help

4、tuxiangyuchuli% Last Modified by GUIDE v2.5 07-Sep-2014 18:05:07 % Begin initialization code - DO NOT EDIT gui_Singleton = 1;mfilename, ., gui_Singleton, ., tuxiangyuchuli_OpeningFcn, tuxiangyuchuli_OutputFcn, , ., );gui_State = struct( gui_Name ,gui_Singleton gui_OpeningFcn gui_OutputFcn gui_Layout

5、Fcn gui_Callback if nargin & ischar(varargin1)gui_State.gui_Callback = str2func(varargin1);endif nargoutvarargout1:nargout = gui_mainfcn(gui_State, varargin:); elsegui_mainfcn(gui_State, varargin:);end% End initialization code - DO NOT EDIT% - Executes just before tuxiangyuchuli is made visible.func

6、tion tuxiangyuchuli_OpeningFcn(hObject, eventdata, varargin)% This function has no output args, see OutputFcn.% hObject handle to figure% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% varargin unrecognized PropertyName/P

7、ropertyValue pairs from the% command line (see VARARGIN)% Choose default command line output for tuxiangyuchuli handles.output = hObject;% Update handles structure guidata(hObject, handles);% UIWAIT makes tuxiangyuchuli wait for user response (see UIRESUME)% uiwait(handles.figure1);% - Outputs from

8、this function are returned to the command line. function varargout = tuxiangyuchuli_OutputFcn(hObject, handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handle

9、s and user data (see GUIDATA)% Get default command line output from handles structure varargout1 = handles.output;% - Executes during object creation, after setting all properties. function axes1_CreateFcn(hObject, eventdata, handles)handles,eventdata,% hObject handle to axes1 (see GCBO)% eventdata

10、reserved - to be defined in a future version of MATLABcalled% handles empty - handles not created until after all CreateFcns% Hint: place code in OpeningFcn to populate axes1% - Executes on mouse press over axes background. function axes1_ButtonDownFcn(hObject, eventdata, handles)% hObject handle to

11、 axes1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% - Executes on mouse press over axes background. function axes5_ButtonDownFcn(hObject, eventdata, handles)% hObject handle to axes5 (see GCBO)% eventdata re

12、served - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% function Untitled_1_Callback(hObject, eventdata, handles)% hObject handle to Untitled_1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure wi

13、th handles and user data (see GUIDATA)% function Untitled_2_Callback(hObject, eventdata, handles)% hObject handle to Untitled_2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%显示灰度图像function Untitled_4_Callback(

14、hObject, eventdata, handles)% hObject handle to Untitled_4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) handles.img=getimage(handles.axes1);axes(handles.axes2);if isrgb(handles.img);y=rgb2gray(handles.img);im

15、show(y);elsehandles.img=getimage(handles.axes1);axes(handles.axes2);imshow(handles.img);end% %显示直方图function Untitled_31_Callback(hObject, eventdata, handles)% hObject handle to Untitled_31 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles an

16、d user data (see GUIDATA) handles.img=getimage(handles.axes2);axes(handles.axes3); imhist(handles.img);%function Untitled_32_Callback(hObject, eventdata, handles)% hObject handle to Untitled_32 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handl

17、es and user data (see GUIDATA)%function Untitled_22_Callback(hObject, eventdata, handles)% hObject handle to Untitled_21 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%function Untitled_23_Callback(hObject, eve

18、ntdata, handles)% hObject handle to Untitled_22 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% %打开文件function Untitled_11_Callback(hObject, eventdata, handles)% hObject handle to Untitled_11 (see GCBO)% eventda

19、ta reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) %选取图片路径filename,pathname=uigetfile( *.* , 选取图片 ); %合成路径 + 文件名str=pathname filename;%读取图片 im=imread(str);%使用第一个 axes axes(handles.axes1);%显示图片 imshow(im)%function Untitled_12_Callbac

20、k(hObject, eventdata, handles)% hObject handle to Untitled_12 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%关闭程序function Untitled_13_Callback(hObject, eventdata, handles)% hObject handle to Untitled_13 (see GC

21、BO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) clc;close all ;close(gcf);% function Untitled_231_Callback(hObject, eventdata, handles)% hObject handle to Untitled_211 (see GCBO)% eventdata reserved - to be defined in

22、a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% function Untitled_232_Callback(hObject, eventdata, handles)% hObject handle to Untitled_212 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user da

23、ta (see GUIDATA)% function Untitled_221_Callback(hObject, eventdata, handles)% hObject handle to Untitled_211 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%上下翻转function Untitled_211_Callback(hObject, eventdata

24、, handles)% hObject handle to Untitled_211 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) x=getimage(handles.axes1);axes(handles.axes4);if isrgb(x)for k=1:3y(:,:,k)=flipud(x(:,:,k); %上下翻转函数endimshow(y);elsey=f

25、lipud(x);imshow(y);end% %左右翻转function Untitled_212_Callback(hObject, eventdata, handles)% hObject handle to Untitled_212 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) x=getimage(handles.axes1);axes(handles.axe

26、s4);if isrgb(x)for k=1:3y(:,:,k)=fliplr(x(:,:,k); %左右翻转函数endimshow(y);elsey=flipud(x);imshow(y);end% %任意角度旋转function Untitled_213_Callback(hObject, eventdata, handles)% hObject handle to Untitled_213 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure wi

27、th handles and user data (see GUIDATA) a=getimage(handles.axes1);axes(handles.axes4);prompt= 输入参数 1: ; defans= 30 ;p=inputdlg(prompt, 输入参数 ,1,defans); p1=str2num(p1);y=imrotate(a,p1); imshow(y);% %显示处理前图像频谱function Untitled_321_Callback(hObject, eventdata, handles)% hObject handle to Untitled_321 (s

28、ee GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) x=getimage(handles.axes2);axes(handles.axes5);if isrgb(x)m=fft2(x(:,:,1);y=fftshift(m);imshow(log(abs(y),);elsem=fft2(x);y=fftshift(m);imshow(log(abs(y),);end% %显示处理

29、后图像频谱function Untitled_322_Callback(hObject, eventdata, handles)% hObject handle to Untitled_322 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) a=getimage(handles.axes4);axes(handles.axes6);if isrgb(a);x=rgb2g

30、ray(a);elsex=getimage(handles.axes4);axes(handles.axes6);endif isrgb(x) m=fft2(x(:,:,1); y=fftshift(m); imshow(log(abs(y),);elsem=fft2(x); y=fftshift(m); imshow(log(abs(y),);end% %邻近的两点插值缩小function Untitled_2221_Callback(hObject, eventdata, handles)% hObject handle to Untitled_2221 (see GCBO)% event

31、data reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) a=getimage(handles.axes1);axes(handles.axes4);%邻近插值放大prompt= 输入放大倍数 : ;defans= 0.2 ;p=inputdlg(prompt, 输入放大倍数 ,1,defans); p1=str2num(p1);y=imresize(a,p1, nearest ); %邻近的两点插值缩小imshow(y);% %线性插值缩小function Untitled_2222_Callback(hObject, eventdata, handles)% hObject handle to Unt

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1