Cell array menu image acquisition error
Mostrar comentarios más antiguos
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 comentarios
Adam
el 21 de Ag. de 2017
What is show_window? It's not a Matlab function so far as I can see.
Marcel Liphardt
el 21 de Ag. de 2017
Marcel Liphardt
el 21 de Ag. de 2017
Jan
el 21 de Ag. de 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?
Marcel Liphardt
el 22 de Ag. de 2017
Respuestas (0)
Categorías
Más información sobre GigE Vision Hardware en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!