Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Rounding after applyModelNIFTIs #51

@zyeapp

Description

@zyeapp

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions