필터 지우기
필터 지우기

GUI - "entrance effect"

조회 수: 3 (최근 30일)
Mark Golberg
Mark Golberg 2016년 1월 21일
댓글: Walter Roberson 2016년 1월 22일
Hello, what's the best way to create in matlab GUI (GUIDE) a "entrance effect". I mean, like you have in power point animation.
I have a certain image, let's say size = [1000 1000]. I'd like to show first (:,1:100) then (:,101:200) and so forth.
If I simply try to imagesc a certain slice of my image, it gets "smeared" all over the axes. How can draw each column of the matrix image at it's right location?
Also, what's the best way create a "smooth entrance left-to-right" effect? I was thinking on working with pause...is there a better approach? You know, something like the entrance speed you have in Power Point...

답변 (1개)

Walter Roberson
Walter Roberson 2016년 1월 22일
You can pass x and y coordinates of the corners to imagesc(). Please read the documentation about what the coordinates represent as you will probably want to add 1/2 to the "natural" coordinates to use.
  댓글 수: 6
Mark Golberg
Mark Golberg 2016년 1월 22일
I've found the solution. Simply needed to invert the order. First image... then set(ax, ....)
It draw slice perfectly.
THANK YOU.
Walter Roberson
Walter Roberson 2016년 1월 22일
I keep forgetting that the axes limits are cleared for new drawing if hold is not on.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by