Cell array menu image acquisition error
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hello,
I wrote a cell array menu because I wanted to use themenu style that the image acquisition toolbox uses. It looks like this:
function main(~)
cell_list = {};
fig_number = 1;
title_figure = 'Test';
cell_list{1,1} = {'1.Calibration','calib_gui;'};
cell_list{2,1} = {'2.Stereo Calibration','stereo_gui;'};
cell_list{3,1} = {'3.Choose/Rename Images','rename_images;'};
cell_list{4,1} = {'4.Record','record;'};
cell_list{5,1} = {'Exit',['disp(''Goodbye.''); close(' num2str(fig_number) ');']};
show_window(cell_list,fig_number,title_figure,290,18,0,'clean',12);
end
Now if I click on 4.Record, it calls the function and then it should ceate another figure, containing two side by side previews of my two cameras. But I can't get it to work and I think its because of the show_window command? Right now Im using this:
start(vid1);
start(vid2);
preview(vid1);
preview(vid2);
But if I want to get a good menu, do I have to use something like GUIDE?
5 Commenti
Jan
il 21 Ago 2017
The shown code is prone to bugs: ~exist('cell_list') checks for M- and Mex-files anywhere in the path, java classes and files and folders in the current directory. I would not rely on such code.
But if I want to get a good menu, do I have to use something like GUIDE?
What exactly is a "good" menu?
Risposte (0)
Vedere anche
Categorie
Scopri di più su GigE Vision Hardware in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!