Filter löschen
Filter löschen

Cell array menu image acquisition error

1 Ansicht (letzte 30 Tage)
Marcel Liphardt
Marcel Liphardt am 21 Aug. 2017
Kommentiert: Marcel Liphardt am 22 Aug. 2017
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 Kommentare
Jan
Jan am 21 Aug. 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
Marcel Liphardt am 22 Aug. 2017
Hey Jan,
well you kniów, if I push this button: cell_list{4,1} = {'4.Record','record;'};
Then I would like to get a menu containing two camera previews, one on the left and one on the right and some buttons.
And therefore I don't know the best way to do so.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by