Interpolation of a 2D image series at specific slice locations

2 vues (au cours des 30 derniers jours)
De Ar
De Ar le 3 Juil 2018
Modifié(e) : Matt J le 1 Mai 2021
I have imported a series of 2D DICOM files containing 14 MR images. The resolution of the image data matrix is 512x512x14. These MR slices are located in the axial plane at real world slice locations -40.063mm to 11.937mm in 4mm intervals. I want to reslice this series along the same axis to have slice locations at xx.466mm in 1mm intervals such that I end up with a new data matrix with resolution 512x512x52 (slice locations from -39.466mm to 11.534mm). Should trilinear interpolation be applied in this case? Could someone help me with this interpolation problem? Also, the voxel resolution is (0.3516 x 0.3516 x 4)mm/pixel.
Many thanks in advance!

Réponse acceptée

Matt J
Matt J le 3 Juil 2018
Modifié(e) : Matt J le 3 Juil 2018
You should use interp1, and a little bit of reshaping:
zold=linspace(-40.063, +11.937, 14).';
znew=linspace(-39.466 , 11.534, 52).';
array=reshape(MRvolume,[],14).';
new=interp1(zold,array,znew).';
result=reshape(new, [512,512,52] );
  8 commentaires
Sebastian Joseph
Sebastian Joseph le 1 Mai 2021
Something wrong in the paste command or I did wrong..the link is

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur DICOM Format 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