How to get mri cdata when using isosurface returns only faces and vertices?

1 Ansicht (letzte 30 Tage)
when using the following code
>>load mri
>>D= squeeze (D);
>>Ds = smooth3(D);
>>isosurface(Ds,5)
the last command only returns vertices and faces
how can I get cdata(color and vertex function value) of the mri?

Antworten (1)

Walter Roberson
Walter Roberson am 3 Okt. 2013
Look at the documentation:
[f,v] = isosurface(...) or [f,v,c] = isosurface(...) returns the faces and vertices (and faceVertexcCData) in separate arrays instead of a struct.
So use the three-output version of isosurface() to get the FaceVertexCData
  1 Kommentar
Mohamed Elkomy
Mohamed Elkomy am 3 Okt. 2013
I tried [f,v,c] but I got the following error : EDU>> [f,v,c] = isosurface (Ds,5); Error in isosurface (line 63) [x, y, z, data, colors, value, noshare, verbose] = parseargs(nargin,varargin);
Output argument "cout" (and maybe others) not assigned during call to "C:\Program Files\MATLAB\R2013a Student\toolbox\matlab\specgraph\isosurface.m>isosurface".

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by