Reference to non-existent field 'PixelSpacing'.
조회 수: 1 (최근 30일)
이전 댓글 표시
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
Rik
2018년 5월 6일
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.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 DICOM Format에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!