Borrar filtros
Borrar filtros

Rotation of a Volume

5 visualizaciones (últimos 30 días)
carlos Uribe
carlos Uribe el 19 de Nov. de 2013
Respondida: Matt J el 19 de Nov. de 2013
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

Respuesta aceptada

Matt J
Matt J el 19 de Nov. de 2013
Editada: Matt J el 19 de Nov. de 2013
imrotate(A,90*3) will do it if you have the appropriate toolbox.

Más respuestas (1)

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

Categorías

Más información sobre 3-D Volumetric Image Processing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by