imtranslate is not working with 4D images?

1 vue (au cours des 30 derniers jours)
Stelios Fanourakis
Stelios Fanourakis le 31 Mai 2018
Commenté : Rik le 31 Mai 2018
I am trying to run imtranslate to a 4D stack of dicom images. I get the error that imtranslate needs a 3D image.
How can I make it run with a 4D matrix? I am using this line
H = imtranslate(im2(:,y,:,:),[col,row,0],'OutputView','full');
  1 commentaire
Rik
Rik le 31 Mai 2018
Is y a scalar? If so, you can use squeeze to convert the input to a 3D array. Afterwards, you can use permute to reshape it to a 4D array.

Connectez-vous pour commenter.

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