How to get mri cdata when using isosurface returns only faces and vertices?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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?
0 Commenti
Risposte (1)
Walter Roberson
il 3 Ott 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
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!