Rotating a 3D image?

3 ビュー (過去 30 日間)
Jack
Jack 2014 年 7 月 10 日
回答済み: Antoine 2014 年 7 月 10 日
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

採用された回答

Mike Garrity
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.

その他の回答 (1 件)

Antoine
Antoine 2014 年 7 月 10 日
You can have a look at the view function. view(az,el) view([x,y,z])

カテゴリ

Help Center および File ExchangeNeuroimaging についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by