How to plot surf for 3D images.
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
mohd akmal masud
am 27 Jun. 2022
Beantwortet: KSSV
am 27 Jun. 2022
Dear all, I have 3D image as attached. How to plot it using surf fucntion? so that i can get the graph as below.
>> h = dicomread('h.dcm');
>> h = squeeze(h);
>> surf(h);
Error using matlab.graphics.chart.primitive.Surface
Value must be a scalar, vector or array of numeric type.
Error in surf (line 145)
hh = matlab.graphics.chart.primitive.Surface(allargs{:});
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Voss
am 27 Jun. 2022
unzip('h.zip')
h = dicomread('./h/h.dcm');
whos h
h = squeeze(h);
whos h
figure();
surf(h(:,:,1))
title('First Slice')
colormap(jet());
colorbar();
figure();
surf(h(:,:,end))
title('Last Slice')
colormap(jet());
colorbar();
figure();
surf(sum(h,3));
title('Sum of All Slices')
colormap(jet());
colorbar();
0 Kommentare
Siehe auch
Kategorien
Mehr zu Modify Image Colors finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!