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
답변 (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!