I want to display the image in query axes but it shows up on result axes
3 次查看(过去 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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!