How can I display stereo image processing output on the GUI

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

Accepted Answer

Image Analyst
Image Analyst on 21 May 2013
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).
  1 Comment
Manini
Manini on 22 May 2013
Again facing the same problem. How to get the output of 'ABC' function that is a matlab figure in the GUI axes ? I also tried to save that figure in a .png file using saveas function but don't know how to paste that in axes of GUI on a click of push button.

Sign in to comment.

More Answers (0)

Categories

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

Community Treasure Hunt

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

Start Hunting!