how to concatenate variables for DWI images
5 ビュー (過去 30 日間)
古いコメントを表示
I have written matlab code to read 5 diffusin weighted images (DWI niftii files) having size 176x176x14 (rows x column x no. of slices) and want to concatenate all DWI variables (DWI1, DWI2, DWI3, DWI4, DWI5) as shown below.. after running this code C has 176x880x14. what could be wrong in concatenation. Please suggest the right way of doing it. Thank you in advance.
DWI1 = niftiread('1_b0.nii');
DWI2 = niftiread('2_b150.nii');
DWI3 = niftiread('3_b500.nii');
DWI4 = niftiread('4_b1000.nii');
DWI5 = niftiread('5_b2000.nii');
C = [DWI1, DWI2, DWI3, DWI4, DWI5];
0 件のコメント
採用された回答
Sindhu Karri
2020 年 5 月 28 日
Hii, As you have concatenated 5 images (176x176x14) along 2nd dimension ,the resulted image has (176x880x14) ,where 880=176*5,which is reasonable.
Depending on the requirement you can use the following functions:
1)cat()
2)imfuse
3)montage
Refer to below links:
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Special Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!