imshow differences in 2018a vs older version

1 visualización (últimos 30 días)
Phillip Miller
Phillip Miller el 23 de Oct. de 2018
Comentada: Walter Roberson el 24 de Oct. de 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 comentarios
Phillip Miller
Phillip Miller el 24 de Oct. de 2018
That would do it. I never had to do that before. Thanks!
Walter Roberson
Walter Roberson el 24 de Oct. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by