% --- 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)
%Load Image onto Axes
%Display only required file extensions in folder
[filename pathname] = uigetfile({'*.jpg';'*.png'},'Select Image');
%Concatenate the pathname and filename and store into a single variable
inputImage=strcat(pathname, filename);
%Load Image onto axes1
imshow(inputImage, 'Parent', handles.axes1);
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)
%Load Image onto Axes
%Display only required file extensions in folder
[filename pathname] = uigetfile({'*.jpg';'*.png'},'Select Image');
%Concatenate the pathname and filename and store into a single variable
inputImage=strcat(pathname, filename);
%Load Image onto axes1
imshow(inputImage, 'Parent', handles.axes1);
No comments:
Post a Comment