Effacer les filtres
Effacer les filtres

Parallel Computing

4 vues (au cours des 30 derniers jours)
Kosai
Kosai le 19 Juin 2012
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 commentaires
Walter Roberson
Walter Roberson le 19 Juin 2012
How are you playing the video at present?
Kosai
Kosai le 19 Juin 2012
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

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 19 Juin 2012
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.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by