[Neuroimaging] Extract XYZ coordinates in mm using nibabel

shuang wu shuanw at uw.edu
Mon Jan 23 01:19:48 EST 2017

Hi there:

I am recently using the nibabel (nib) package in python to try to extract
the information from .img file. I use nib.load.get_data() to extract the
intensity values from the img file, but I do not know how to extract those
corresponding xyz coordinates in mm.

In Matlab, I can use [Y, xyz] = spm_read_vols(vol) to extract both the
intensity values Y and the coordinates xyz in mm.

Is there anyway to do the same thing using python?

Thanks in advance for any help!


Shuang(Sam) Wu, MS
Applied Mathematics Department
University of Washington
shuanw at uw.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20170123/99143a04/attachment.html>

More information about the Neuroimaging mailing list