Rotating a 3D image?

2 visualizaciones (últimos 30 días)
Jack
Jack el 10 de Jul. de 2014
Respondida: Antoine el 10 de Jul. de 2014
What code could I use in order to be able to rotate a 3d image of a brain? Im using Matlab 2007 version, thanks in advance

Respuesta aceptada

Mike Garrity
Mike Garrity el 10 de Jul. de 2014
The simplest way is actually to texture map it onto a flat surface:
img=imread('street1.jpg');
surf(0:1,0:1,zeros(2),img,'FaceColor','texturemap')
Those first three arguments are the X, Y, & Z coordinates. You might want to fiddle those to match the aspect ratio of your image.

Más respuestas (1)

Antoine
Antoine el 10 de Jul. de 2014
You can have a look at the view function. view(az,el) view([x,y,z])

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