dicomread for grayscale images

조회 수: 6 (최근 30일)
alan shen
alan shen 2021년 1월 13일
답변: Anshika Chaurasia 2021년 1월 19일
I am trying to get grayscale values for a jawbone dicom image, however, the values obtained for pixels do not seem to make sense. It says that data type is uint16. When i try to visually check the value correctness, a relatively gray area gives me a value of only 1000. I am expecting a value much larger as it is uint16 ranging from 0 to 65535.
Can somebody please take a look at my dicom file?
Thanks a lot!
Alan
  댓글 수: 1
alan shen
alan shen 2021년 1월 13일
Supplement: I just tested the layer 1 (IMG0001.dcm) individually, the value appears to be -1000 for the black color. I have no idea why....

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

답변 (1개)

Anshika Chaurasia
Anshika Chaurasia 2021년 1월 19일
Hi Alan,
First thing, int16 and uint16 datatypes are different.
  • int16 - 16-bit signed integer, [-32768, 32767]
  • uint16 - 16-bit unsigned integer, [0, 65535]
The image attached by you shows that datatype is int16 not uint16.
Refer to the following documentations on int16 and uint16 for more information.
Hpoe it helps you!

카테고리

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by