Animation of a volume

2 次查看(过去 30 天)
Sebastian Daneli
Sebastian Daneli 2025-2-26
I have a volume (1040x1392x41 double) and I would like to create an animation that visualizes this volume. A simple one would be one visualizes the volume in the z-direction (going from 1 to 41) and back up again, without the need for user interference.

回答(1 个)

Walter Roberson
Walter Roberson 2025-2-26
videofig(size(YourData,3), @(frame)redraw(YourData, frame));
function redraw(YourData, frame)
imshow(YourData(:,:,frame))
end
  1 个评论
Sebastian Daneli
Sebastian Daneli 2025-2-28
@Walter Roberson, does not work at all. Just shows me whatever frame I'm intressted to look at.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Animation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by