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

Storing floating point values #38

Open
devDonnn opened this issue Jun 13, 2023 · 0 comments
Open

Storing floating point values #38

devDonnn opened this issue Jun 13, 2023 · 0 comments

Comments

@devDonnn
Copy link

devDonnn commented Jun 13, 2023

Hi,

I have a NIfTI image volume which values range from -1 to 2. When I convert to DICOM I get a binary image where only the values above 1 are kept. Thus, all the negative and values less than 1 are cropped to be 0. Why is that? How can I store negative values as well?

EDIT: that actually seems to be a problem of not being able to store floating point values, the image is saved as UNSIGNED INT. How can I store floating point values? The rescale option (-r) does not do the job.

@devDonnn devDonnn changed the title Storing negative values Storing floating point values Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant