Rotating a 3D image?
3 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Mike Garrity
2014-7-10
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.
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Neuroimaging 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!