imshow differences in 2018a vs older version

1 visualizzazione (ultimi 30 giorni)
Phillip Miller
Phillip Miller il 23 Ott 2018
Commentato: Walter Roberson il 24 Ott 2018
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 Commenti
Phillip Miller
Phillip Miller il 24 Ott 2018
That would do it. I never had to do that before. Thanks!
Walter Roberson
Walter Roberson il 24 Ott 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.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by