フィルターのクリア

Parallel Computing

4 ビュー (過去 30 日間)
Kosai
Kosai 2012 年 6 月 19 日
I have a GUI which contains 3 Compnents (Video-Win-Axes, Start-Button and Calc-Button). On the Video-Win-Axes my video Stream will be presented after clicking on Start-Button.
My Problem is that when i click on Calc-Button the Video Presentation on Video-Win-Axes is stoped until the Processes and Functions in Calc-Button are finished.
How could i get the Video Presentation on Video-Win-Axes continuously while the Processes and Functions in Calc-Button are running ? Thanks
  2 件のコメント
Walter Roberson
Walter Roberson 2012 年 6 月 19 日
How are you playing the video at present?
Kosai
Kosai 2012 年 6 月 19 日
imURL = 'http:\\192.168.0.0\snap.jpg';
while(true)
y = imread(imURL);
axes(handles.Video-Win-Axes); imshow(y);
/// if the Calc-Button was clicked the following Block of Code have to be excuted ....
myFun1();
myFunc2();
///////
end

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

採用された回答

Walter Roberson
Walter Roberson 2012 年 6 月 19 日
You will probably have to switch your video loop to having each frame being timer activated. Timers can interrupt .m files in-between lines -- but if the lines happen to involve intense calculations then it could potentially be rather some time inside any line, so this is not a robust approach.

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by