Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Error while writing DICOM series using an integer as output pixel type #867
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
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 (https://itk.org/pipermail/insight-users/2014-September/050886.html). But I was unsure whether to report it here (for possible workarounds, patches and awareness) or at GDCM to look at.