フィルターのクリア

Cell array menu image acquisition error

1 回表示 (過去 30 日間)
Marcel Liphardt
Marcel Liphardt 2017 年 8 月 21 日
コメント済み: Marcel Liphardt 2017 年 8 月 22 日
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 件のコメント
Jan
Jan 2017 年 8 月 21 日
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 2017 年 8 月 22 日
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.

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by