フィルターのクリア

MATLAB figure windows are disabled using PCT

1 回表示 (過去 30 日間)
Andreas Schwager
Andreas Schwager 2019 年 2 月 19 日
Hi,
I'm using figures creating videos in order to document my processing.
The code runs fine without Parallel Computing Toolbox (PCT).
However, in order to speed up I like to process multiple videos in parallel.
The one and the same code throws the following error using PCT:
MATLAB figure windows are disabled. GETFRAME can not capture any part of a figure's frame, menus, or toolbars unless figure windows are displayed.
Yes, PCT workers process everything in background without visualizing it. Anyway I like to have multiple videos generated in parallel.
The code uses the VideoWriter and getFrame to collect the video.
vidWriter = VideoWriter(['Video' num2str(a(1)) '.avi']);
:
fig = figure;
:
writeVideo(vidWriter, getframe(fig))
How to enable figures even they are called by a PCT worker in background?
Thanks!

回答 (0 件)

カテゴリ

Help Center および File ExchangeAnimation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by