Azzera filtri
Azzera filtri

display axial slices from 3D MRI images

5 visualizzazioni (ultimi 30 giorni)
Hello every body, I have 3D MR images in .img format .I want to display all the axial slices in one figure. Could any one help me ?

Risposta accettata

Image Analyst
Image Analyst il 15 Set 2017
Loop over slices stitching them together. Here's a start
tallImage = [image1; image2];
wideImage = [image1, image2];
Otherwise you could write each image to a separate image file and then call montage().
  2 Commenti
MMSAAH
MMSAAH il 15 Set 2017
I didn't understand you well. Please how to use montage() ? Here is my code, I've seperated my image into 2D slices.
X_dim=560;
Y_dim=560;
fid=fopen('vol_T1_weight(010)_101.img');
rawdataMR=fread(fid,'int16');
Z_dim=numel(rawdataMR)/(X_dim*Y_dim);
alesion= single (reshape(rawdataMR,[X_dim Y_dim Z_dim]));
fclose(fid);
for i=1:Z_dim
figure
image1=image(alesion(:,:,i));
end
Image Analyst
Image Analyst il 15 Set 2017
If you want to use montage(), just pass it a cell array of 2-D image filenames. It's not hard, just try it.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su MRI in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by