How can I display stereo image processing output on the GUI
1 view (last 30 days)
Show older comments
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.
2 Comments
Accepted Answer
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).
More Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!