imshow differences in 2018a vs older version

1 Ansicht (letzte 30 Tage)
Phillip Miller
Phillip Miller am 23 Okt. 2018
Kommentiert: Walter Roberson am 24 Okt. 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 Kommentare
Phillip Miller
Phillip Miller am 24 Okt. 2018
That would do it. I never had to do that before. Thanks!
Walter Roberson
Walter Roberson am 24 Okt. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by