I want to display the image in query axes but it shows up on result axes

1 次查看(过去 30 天)
function Browse_pushbutton_Callback(hObject, eventdata, handles)
% hObject handle to Browse_pushbutton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA) set(handles.Select_Product_pushbutton,'enable','off');
%set(handles.classify_pushbutton,'enable','off');
set(handles.Submit_Image_pushbutton,'enable','off');
set(handles.Select_Product_pushbutton,'string','Select Product');
global image_path;
[FileName,PathName] = uigetfile({'*.jpg;*.jpeg;*.jpe;*.jfif','JPEG (.jpg;.jpeg;.jpe;.jfif)';'*.png','PNG (.png)';'*.tif;*.tiff','TIF (.tif;.tiff)';'*.jpg;*.jpeg;*.jpe;*.jfif;*.png;*.tif;*.tiff','All Picture Files' '*.*','All Files' },'Select Image To Search'); s1 = FileName;
s2 = PathName;
image_path = strcat(s2,s1);
set(handles.query_image_axes);
imshow(imread(image_path));
set(handles.Select_Product_pushbutton,'enable','on');
set(handles.Browse_pushbutton,'string','Browse Other Image');
% --- Executes on button press in Submit_Image_pushbutton.
if true
% code
end

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by