필터 지우기
필터 지우기

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 CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by