<p>The information you seek is contained in the header of the image file. Matlab has open source tools for reading the header information. e.g., <a href="http://www.mathworks.com/matlabcentral/fileexchange/29344-read-medical-data-3d" rel="nofollow">http://www.mathworks.com/matlabcentral/fileexchange/29344-read-medical-data-3d</a></p>

<p>If you want an even more open source option, NiBabel is an open source python library for reading .nii files (header and image). I think the command  print(header.get_data_shape()) will return the image dimensions. See <a href="http://nipy.org/nibabel/nibabel_images.html#the-image-header" rel="nofollow">http://nipy.org/nibabel/nibabel_images.html#the-image-header</a> for instructions.</p>

CC BY-SA 3.0
2016-04-14T23:45:55.660Z
2016-04-14T23:51:26.610Z
2016-04-14T23:51:26.610Z
sometimes_sci
<p>I have a set of fMRI images (.nii.gz). Now I want to infer the in-plane resolution and the slice thickness. Can this information and perhaps additional information be retrieved with FSL or Matlab? And yes, how?</p>

<p>Or can I calculate it somehow?</p>

<fmri>
fMRI images: In-plane resolution, slice thickness
machinery
# fMRI images: In-plane resolution, slice thickness

(Asked by: username_0 on 2015-05-22)

I have a set of fMRI images (.nii.gz). Now I want to infer the in-plane resolution and the slice thickness. Can this information and perhaps additional information be retrieved with FSL or Matlab? And yes, how?

Or can I calculate it somehow?

**Tags:** fmri


---

## 1 answers

### Answer by username_1 on 2016-04-14. Score: 2

The information you seek is contained in the header of the image file. Matlab has open source tools for reading the header information. e.g., <http://www.mathworks.com/matlabcentral/fileexchange/29344-read-medical-data-3d>

If you want an even more open source option, NiBabel is an open source python library for reading .nii files (header and image). I think the command print(header.get\_data\_shape()) will return the image dimensions. See <http://nipy.org/nibabel/nibabel_images.html#the-image-header> for instructions.


---

