MATLAB Answers


How can I display stereo image processing output on the GUI

Asked by Manini
on 21 May 2013

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
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.



imagesc(disparity_map, 'Parent', handles.axes3);
on 22 May 2013

It's Not working. I tried this before.

1 Answer

Answer by Image Analyst
on 21 May 2013
 Accepted answer

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

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.

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!