I have two stereo images (left and right). There is a function 'ABC' that takes input of (these) two images, does certain processing and gives disparity map as output. I am trying to develop a GUI for this. So far I can select two input images on click of two buttons (using uigetfile) and display them on screen . On click of third button, I call my function 'ABC'. I want to display the output of ABC function on the GUI
Any idea how should I write my 'pushbutton3_Callback' ?
function pushbutton3_Callback (hObject, eventdata, handles)
% hObject handle to pushbutton3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global I1 global I2 axes(handles.axes3); disparity_map = ABC (I1,I2, 40,100);
% Not sure what should I write here to display the output of 'ABC'
Note: I am using axes to display my input images on the GUI and want to display the output in a third axes.
How tedious. I'd really recommend you have two listboxes filled with the image filenames rather than forcing users to struggle with a button and uigetfile(). Clicking on either listbox will display the image in the appropriate listbox as well as automatically update and display the disparity map in axes3 (if it's fast enough and the images are truly stereo pairs of each other).
Play games and win prizes!Learn more