Rotation of a Volume

5 次查看(过去 30 天)
carlos Uribe
carlos Uribe 2013-11-19
回答: Matt J 2013-11-19
Sorry about this simple question but didn't find a way of doing it.
Is there a way I can do the following
for i=1:nslices
A(:,:,i)=rot90(A(:,:,i),3);
end
without having the loop? The loop takes a while.
In general what I'm doing is rotating a volume about the third dimension

采纳的回答

Matt J
Matt J 2013-11-19
编辑:Matt J 2013-11-19
imrotate(A,90*3) will do it if you have the appropriate toolbox.

更多回答(1 个)

Matt J
Matt J 2013-11-19
You can also do things like this
A = flipdim(permute(A,[2,1,3]),2);

类别

Help CenterFile Exchange 中查找有关 3-D Volumetric Image Processing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by