The image is didn't displayed in the axes4.
function pushbutton5_Callback(hObject, eventdata, handles)% hObject handle to pushbutton5 (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({'*.jpg';'*.bmp'},'Select MRI');inputimage=strcat(pathname, filename);axes(handles.axes3)imshow(inputimage) % save the updated handles object
guidata(hObject,handles);% --- Executes on button press in pushbutton6.
function pushbutton6_Callback(hObject, eventdata, handles)% hObject handle to pushbutton6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)if isfield(handles,'inputimage') axes(handles.axes4)a=rgb2gray(imread(inputimage));Y=medfilt2(a,[5 5]);imshow(Y)end
Best Answer