我有一個矩陣M, 135*191*121 double
,並希望使用這些121個切片在3D體積中繪製它。我怎樣才能做到這一點? (我需要一個灰度圖像)MATLAB 3D體積可視化
每一個你需要繪製點的問候
我有一個矩陣M, 135*191*121 double
,並希望使用這些121個切片在3D體積中繪製它。我怎樣才能做到這一點? (我需要一個灰度圖像)MATLAB 3D體積可視化
每一個你需要繪製點的問候
退房vol3d v2 3D繪圖,它的更新,喬孔蒂的vol3d功能,讓體素的顏色和阿爾法值進行明確定義。在的情況下的體素可以是任何RGB顏色,使用:
vol3d('CData', cdata);
其中CDATA是MxNxPx3陣列,沿着第四維RGB顏色。在顏色和alpha值高度獨立的情況下,請指定MxNxP alphamatte,如下所示:
vol3d('CData', cdata, 'Alpha', alpha);
,如果你有3個陣列,存儲(X,Y,Z)座標,那麼你可以使用函數plot3
從MATLAB幫助
PLOT3繪製三維空間中的線條和點。 PLOT3()是PLOT()的三維模擬。
PLOT3(x,y,z), where x, y and z are three vectors of the same length, plots a line in 3-space through the points whose coordinates are the elements of x, y and z. PLOT3(X,Y,Z), where X, Y and Z are three matrices of the same size, plots several lines obtained from the columns of X, Y and Z. Various line types, plot symbols and colors may be obtained with PLOT3(X,Y,Z,s) where s is a 1, 2 or 3 character string made from the characters listed under the PLOT command. PLOT3(x1,y1,z1,s1,x2,y2,z2,s2,x3,y3,z3,s3,...) combines the plots defined by the (x,y,z,s) fourtuples, where the x's, y's and z's are vectors or matrices and the s's are strings. Example: A helix: t = 0:pi/50:10*pi; plot3(sin(t),cos(t),t); PLOT3 returns a column vector of handles to lineseries objects, one handle per line. The X,Y,Z triples, or X,Y,Z,S quads, can be followed by parameter/value pairs to specify additional properties of the lines.
爲您可能還需要尋找到衝浪功能
感謝有用的tipp @natan!我想知道如何正確地標記軸?在調用'xlabel | ylabel | zlabel'後,'軸'上不會顯示所需的文本,特別是在旋轉音量之後。任何線索? – Tin
您是否嘗試通過電子郵件發送Oliver Woodford?他是vol3d v2的作者... – bla