-
-
Notifications
You must be signed in to change notification settings - Fork 686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: GDCMImageIO issue loading single-bit binary dcm mask. #1969
Comments
I've learned the file is saved as a Dicom-RT file. I was able to load it with pydicom and got a |
@issakomi and/or @malaterre can best answer this. |
Unfortunately singlebit is not implemented in GDCM IO. It is defined in GDCM, should be not very difficult to add, AFAIK. ITK/Modules/IO/GDCM/src/itkGDCMImageIO.cxx Line 429 in 9b7a280
|
I'm not sure how to add the feature but I would be happy to test it out. |
Description
Hello. I am running into an error processing a medical image segmentation DICOM file from The Cancer Imaging Archive. When I call itk.imread() on the datapoint, the
GDCMImageIo
library is throwing anUnhandled PixelFormat: SamplesPerPixel :1
error.The python SimpleITK library throws the same error.
Steps to Reproduce
Expected behavior
Dicom mask file is loaded into an image.
Actual behavior
Log from crash
Reproducibility
I am using CT scan image data from this NSCLC Radiogenomics TCIA dataset. The error happens every time I try to a patients 3d chest ct segmentation .dcm file.
Environment
Debian Buster, Cmake == 3.16.3, itk == 5.1.1, python == 3.8.3
Additional Information
I want to use the GDCM SingleBit pixelformat in the GDCM docs, but I am not sure how to pass it in through itk.
The text was updated successfully, but these errors were encountered: