Reference to non-existent field 'PixelSpacing'.

1 vue (au cours des 30 derniers jours)
Stelios Fanourakis
Stelios Fanourakis le 6 Mai 2018
Commenté : Rik le 6 Mai 2018
HI
I have downloaded a DICOM View app from here. When I try to run it (Load my dicom images) I get the error "Reference to non-existent field 'PixelSpacing'." at line
scale=[info.PixelSpacing(1) info.PixelSpacing(2) info.SliceThickness];
Anyone help?
  1 commentaire
Rik
Rik le 6 Mai 2018
Not all dicom files have the same fields. You could add a check that defaults to scale=[1 1 1]; if the two referenced fields are missing.

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