Class of the dicom image read by the dicomread function

조회 수: 1 (최근 30일)
Tanusree Chaudhuri
Tanusree Chaudhuri 2016년 5월 13일
댓글: Rik 2021년 6월 7일
Hello!
Could anyone please tell me what changes the class of a dicom image read by dicomread() ?
For example,
CT_ankle=dicomread('CT-MONO2-16-ankle.dcm');
CT_ankle_class=class(CT_ankle);
CT_ankle_class=int16
However, when I give an image from my dicom dataset as an input to dicomread() it returns an image of class uint16.
The dicom image read by the dicomread() can be of class uint8, int8, uint16, or int16. I want to know what determines the class.
Thanks & Regards
Tan

채택된 답변

Matt Cohen
Matt Cohen 2016년 5월 17일
Hi Tan,
I understand you are interested in learning more about what dictates the class of a DICOM image.
The class of the DICOM image should be set by the hardware/acquisition device that creates and stores the image. Different sources might encode images slightly differently, which leads to some being uint8 while others being int8, etc. However, there are at least some standards and consistency as far as the different format types go. The specific encoding format will be stored in the DICOM file so that MATLAB knows what class the image's data belongs to when loading, and, as mentioned in the documentation, it will belong to one of the four specified classes.
I hope this information proves to be helpful.
Matt
  댓글 수: 3
Houssam
Houssam 2021년 6월 7일
Hi Matt
still in 2021, i am unteressted too in knowing where dcm file stores the information about the class of the image, because i ve searched the dcm header and only found a parameter named BitDepth but nothing to do with the class !!!
Rik
Rik 2021년 6월 7일
It has to do with the VR label of the dictionary entry of the image data. So it isn't actually stored in the DICOM file, but in the dictionary.
An implementation like Matlab might chose to use int8 if the BitDepth is sufficiently small that all data will fit, but those conventions are not enforced by the standard itself.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 DICOM Format에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by