本帖最后由 NorthLion 于 2015-8-31 09:55 编辑
问题已经解决了,谢谢!
matlab GUI读取一张图片、在test3_axes1显示,对这张图片进行中值滤波并在test3_axes2显示,中open和cacumed的程序如下
function test3_open_Callback(hObject, eventdata, handles)
% hObject handle to test3_open (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
[filename,pathname]=uigetfile({'*.bmp;*.jpg;*.png;*.jpeg',...
'Image Files (*.bmp,*.jpg,*.png,*.jpeg)';...
'*.*','All Files (*.*)'},...
'Pick an image');
if isequal(filename,0) || isequal(pathname,0)
return;
end
axes(handles.test3_axes1);
fpath=[pathname filename];
test3_axes1=imread(fpath);
imshow(test3_axes1);
setappdata(handles.test3_figure,'test2_axes