フィルターのクリア

imshow differences in 2018a vs older version

1 回表示 (過去 30 日間)
Phillip Miller
Phillip Miller 2018 年 10 月 23 日
コメント済み: Walter Roberson 2018 年 10 月 24 日
Okay,
So I'm migrating to 2018a, and have some problems with imshow working slightly differently. The code is essentially this:
while(hasFrame(video))
h = figure; imshow(frameImage);
hold on;
% plot a ton of stuff ontop of the image
hold off;
% Process frame
end
In the older versions, I would get these beautiful figures with data superimposed on top of the image; In 2018a, I only get the image unless I hit a breakpoint, then the get my overlaid data to show up.
Is there any way to get this back?
  3 件のコメント
Phillip Miller
Phillip Miller 2018 年 10 月 24 日
That would do it. I never had to do that before. Thanks!
Walter Roberson
Walter Roberson 2018 年 10 月 24 日
Your code outline implies that you create a new figure for each frame. Each figure() call to create a new figure should trigger an update of all existing visible figures, so you would get the frames appearing with a lag of one frame. But it would be odd to create a new figure for each frame.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by