필터 지우기
필터 지우기

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