How to view image from .MAT file
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Max Walliam
am 21 Okt. 2021
Beantwortet: Chunru
am 21 Okt. 2021
This brain tumor dataset containing 3064 T1-weighted contrast-inhanced images from 233 patients with three kinds of brain tumor: meningioma (708 slices), glioma (1426 slices), and pituitary tumor (930 slices).
This data is organized in matlab data format (.mat file). Each file stores a struct
How can i read this file and save it as jpg i have aattached one of the .mat file
0 Kommentare
Akzeptierte Antwort
Chunru
am 21 Okt. 2021
x = load("1.mat");
x.cjdata
figure(1); imagesc(x.cjdata.image); axis image
saveas(gcf, 'a.jpg');
figure(2); imagesc(x.cjdata.tumorMask); axis image
saveas(gcf, 'b.jpg');
figure(3); plot(x.cjdata.tumorBorder); % what is this data?
dir
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Convert Image Type 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!