Xray visualization problem (monochrome2)

I tried to resample an xray image which has a monochrome2 type photometric interpretation (data type: uint16). I couldn’t create an image. By using pydicom, I managed to visualize with pixel array functionality.


I couldn’t find anything about this issue. How can I use simpleITK for opening a monochrome2 type xray file(dicom)? I could not understand clearly why the values of my array is 0,1 when I use sitk.ReadImage() and sitk.GetArrayFromImage()? Any help would be appreciated.

Thanks in advance

Hello @Gokce_Guven,

This should work as usual with ReadImage. It may just be a version issue, possibly a bug in the older version. I recommend that you upgrade to the latest release candidate version as we will be releasing version 2.0 in the next couple of weeks.

If this upgrade doesn’t resolve the issue, please share the image to allow us to debug the problem.