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

Open
MaxvandenBoom opened this issue May 14, 2019 · 1 comment

Comments

Projects
None yet
3 participants
@MaxvandenBoom
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 (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.

Best regards,
Max

@dzenanz

This comment has been minimized.

Copy link
Member

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.