急求Matlab语句含义!在function open_Callback(hObject,eventdata,handles)[name,path]=uigetfile('*.*','');file=[path,name];axes(handles.axes1);x=imread(file); %读取图像handles.img=x;guidata(hObject,handles);imshow(x); %显示图像title('打
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/04 22:54:53
![急求Matlab语句含义!在function open_Callback(hObject,eventdata,handles)[name,path]=uigetfile('*.*','');file=[path,name];axes(handles.axes1);x=imread(file); %读取图像handles.img=x;guidata(hObject,handles);imshow(x); %显示图像title('打](/uploads/image/z/2476722-66-2.jpg?t=%E6%80%A5%E6%B1%82Matlab%E8%AF%AD%E5%8F%A5%E5%90%AB%E4%B9%89%21%E5%9C%A8function+open_Callback%28hObject%2Ceventdata%2Chandles%29%5Bname%2Cpath%5D%3Duigetfile%28%27%2A.%2A%27%2C%27%27%29%3Bfile%3D%5Bpath%2Cname%5D%3Baxes%28handles.axes1%29%3Bx%3Dimread%28file%29%3B+%25%E8%AF%BB%E5%8F%96%E5%9B%BE%E5%83%8Fhandles.img%3Dx%3Bguidata%28hObject%2Chandles%29%3Bimshow%28x%29%3B+%25%E6%98%BE%E7%A4%BA%E5%9B%BE%E5%83%8Ftitle%28%27%E6%89%93)
急求Matlab语句含义!在function open_Callback(hObject,eventdata,handles)[name,path]=uigetfile('*.*','');file=[path,name];axes(handles.axes1);x=imread(file); %读取图像handles.img=x;guidata(hObject,handles);imshow(x); %显示图像title('打
急求Matlab语句含义!
在function open_Callback(hObject,eventdata,handles)
[name,path]=uigetfile('*.*','');
file=[path,name];
axes(handles.axes1);
x=imread(file); %读取图像
handles.img=x;
guidata(hObject,handles);
imshow(x); %显示图像
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'); %保存图像
title('保存');
急求Matlab语句含义!在function open_Callback(hObject,eventdata,handles)[name,path]=uigetfile('*.*','');file=[path,name];axes(handles.axes1);x=imread(file); %读取图像handles.img=x;guidata(hObject,handles);imshow(x); %显示图像title('打
function open_Callback(hObject,eventdata,handles)
打开 open这个菜单
[name,path]=uigetfile('*.*','');
得到文件路径和名字
file=[path,name];
把路径和名字存下来
axes(handles.axes1);
坐标,内容是handles.axes1
x=imread(file); %读取图像
handles.img=x;
把图像发给handles.img,方便其他函数调用
guidata(hObject,handles);
把handles句柄更新.
imshow(x); %显示图像
title('打开');
加标题
后面的同上,类似.