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

Rounding after applyModelNIFTIs #51

Open
zyeapp opened this issue Jul 3, 2024 · 1 comment
Open

Rounding after applyModelNIFTIs #51

zyeapp opened this issue Jul 3, 2024 · 1 comment
Labels
question Further information is requested

Comments

@zyeapp
Copy link

zyeapp commented Jul 3, 2024

Hi there,

is there a reason why there is a line of code that rounds the nifti outputs to integers?

nifti_out = nib.Nifti1Image(np.round(nifti_out).astype(np.int16), affine, header) #fix scaling issue

Because I'm working with images that are pretty low in intensity, and I'm afraid of losing small fluctuations that cannot be attributed to noise. I'm not sure what scaling issue this would fix.

Thanks!

@rpomponio
Copy link
Owner

Good question. I'm not sure the original reason behind rounding intensities. I'll have to dig deeper.

Thanks for raising this issue.

@rpomponio rpomponio added the question Further information is requested label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants