Effacer les filtres
Effacer les filtres

how to concatenate variables for DWI images

1 vue (au cours des 30 derniers jours)
Medical Imaging
Medical Imaging le 20 Mai 2020
Commenté : Medical Imaging le 28 Mai 2020
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];

Réponse acceptée

Sindhu Karri
Sindhu Karri le 28 Mai 2020
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:
  1 commentaire
Medical Imaging
Medical Imaging le 28 Mai 2020
Thank you. it is really helpful.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by