display axial slices from 3D MRI images

5 ビュー (過去 30 日間)
MMSAAH
MMSAAH 2017 年 9 月 15 日
コメント済み: Image Analyst 2017 年 9 月 15 日
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 ?

採用された回答

Image Analyst
Image Analyst 2017 年 9 月 15 日
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 件のコメント
MMSAAH
MMSAAH 2017 年 9 月 15 日
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 2017 年 9 月 15 日
If you want to use montage(), just pass it a cell array of 2-D image filenames. It's not hard, just try it.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange3-D Volumetric Image Processing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by