i'm new with NiBabel. I want to know how to get intensity matrix from a Nifti images with this library. I use the following script to get voxels:
import nibabel as ni
example_img = ni.load('myImage.nii')
data = example_img.get_data()
I thought at beginning that data contains the voxels' intensity, but when i've printed it, i've seen negative values, it seems strange to have a negative intensity within an image, don't you think? I need to get the voxels' intensity within a nifti image, is it possibile with nibabel? If not, can you propose me an other solution? Thanks.