imshow differences in 2018a vs older version

1 view (last 30 days)
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 Comments
Phillip Miller
Phillip Miller on 24 Oct 2018
That would do it. I never had to do that before. Thanks!
Walter Roberson
Walter Roberson on 24 Oct 2018
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.

Sign in to comment.

Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!