Rotation of a Volume

조회 수: 2 (최근 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에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by