Closed marcmorcos closed 1 week ago
Thank you for contributing an issue! π
Welcome to the ITK community! π€πβοΈ
We are glad you are here and appreciate your contribution. Please keep in mind our community participation guidelines. π Also, please check existing open issues and consider discussion on the ITK Discourse. π
This is an automatic message. Allow for time for the ITK community to be able to read the issue and comment on it.
Sorry meant to post in SimpleITK.
Hello, this seems very similar to the issue posted here: https://github.com/SimpleITK/SimpleITK/issues/1014
I notice an issue where I simply read a dicom series (CT image data, Float64) and then re-write it without changes to test the functionality.
If I explicitly set the rescale and intercept values to the original CT dicom values (-1000.035 and 0.09397), then the output series is correct - data ranges from ~-1000 to +2055.
However, if I set the rescale value to 0.01 and the intercept to 0 then the output series data ranges from zero to some irrelevant value depending on how many significant digits the rescale value is.
Am I missing something? I was under the impression that ITK would internally do the scaling but this seems not to be the case. Thanks, Marc (Code below for reference)