Skip to content
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

Error while writing DICOM series using an integer as output pixel type #867

MaxvandenBoom opened this issue May 14, 2019 · 1 comment


None yet
3 participants
Copy link

commented May 14, 2019

The writing of DICOM series fails when the output pixel type is set to integer:

Assertion failed: slope == (int)slope, file \ITK_5.0rc02_src\Modules\ThirdPart
y\GDCM\src\gdcm\Source\MediaStorageAndFileFormat\gdcmRescaler.cxx, line 67

I am currently using the example program 'DicomSeriesReadSeriesWrite' to read and write DICOM data and occurs in both the latest release 4.13.2 and ITK 5.0 rc02. When the output pixel type is set to float it does work.

This has been an issue with the InverseRescaleFunction function from GDCM since 2014 ( But I was unsure whether to report it here (for possible workarounds, patches and awareness) or at GDCM to look at.

Best regards,


This comment has been minimized.

Copy link

commented May 14, 2019

I think the correct way it to make a patch to GDCM.

CC: @malaterre @thewtex

@thewtex thewtex added the area:IO label May 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.