[Neuroimaging] Extracting a network from a nifti with 6 others

Angus Campbell angus.j.g.campbell at gmail.com
Sun Nov 24 21:09:13 EST 2019


I have a nifti file which contains 7 networks.  I want to extract each one
as a seperate image so I can pull the zscore of each mni coordinate to make
a binary mask.

Is there any information in the header i have missed that would let me do
this?  How can I pull the data I want out as an array?

 *header=Buckner7net_img.header*













































*print(header)<class 'nibabel.nifti1.Nifti1Header'> object,
endian='<'sizeof_hdr      : 348data_type       : b'          'db_name
  : b'                  'extents         : 0session_error   : 0regular
    : b' 'dim_info        : 32dim             : [  4 256 256 256   1   1
1   1]intent_p1       : 0.0intent_p2       : 0.0intent_p3       :
0.0intent_code     : nonedatatype        : float32bitpix          :
32slice_start     : 0pixdim          : [-1.  1.  1.  1.  0.  0.  0.
 0.]vox_offset      : 0.0scl_slope       : nanscl_inter       :
nanslice_end       : 0slice_code      : unknownxyzt_units      : 18cal_max
        : 7.0cal_min         : 0.0slice_duration  : 0.0toffset         :
0.0glmax           : 0glmin           : 0descrip         : b'FreeSurfer
matlab
'aux_file        : b'                        'qform_code      :
scannersform_code      : scannerquatern_b       : 0.0quatern_c       :
0.70710677quatern_d       : -0.70710677qoffset_x       : 127.0qoffset_y
  : -145.0qoffset_z       : 147.0srow_x          : [ -1.   0.   0.
127.]srow_y          : [   0.    0.    1. -145.]srow_z          : [  0.
 -1.   0. 147.]intent_name     : b'huh?            'magic           :
b'n+1'  *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20191124/1ea6d48b/attachment.html>


More information about the Neuroimaging mailing list