Clear Filters
Clear Filters

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

1 view (last 30 days)
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

Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!