How can I save all slices from 3D image?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am using this code but not working good it save only one slice
for i=1:45
slice=Myimage(:,:,i);
saveas(gcf,'slice_i.png')
end
Antworten (1)
KSSV
am 12 Jan. 2022
for i=1:45
slice=Myimage(:,:,i);
pcolor(slice) ; shading interp
fname = ['slice_',num2str(i),'.png'] ;
saveas(gcf,fname)
end
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox 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!