1. Nifti is one of the common medical image format files. The standard NIFTI extension is. nii, which contains header files as well as image data, as shown in:
HDR is the header file for this file;
filetype: 0--analyze format (. hdr/.img); 1--nifti format (. hdr/.img); 2---nifti format (. nii)
img: is image data;
fileprefix: Nifti file name (not added)
This article is mainly about this file HDR contains content: (Reference: Http://nifti.nimh.nih.gov/pub/dist/src/niftilib/nifti1.h)
The elements of HK in this structure are as follows:
From the definition,SIZEOF_HDR must be 348, 5 consecutive variables are not used,Dim_info is the MRI slice ordering, in short, the information provided is not much;
The elements stored in dime are as follows:
Dim[8] is the dimension of the medical image data matrix: This example is 4(indicates that the image data is four- dimensional data), 1 1 1 (第2-5位 useful) because supports up to 7-D image data , so the dim dimension Here is 8. The first dimension holds the total dimensions of the image data.
pixdim[8] ---voxel width along dimension #i, I=1...dim[0]; In this case: 0 1.484 1.484 1 1 1 1
All I know now is that when you generate an. hdr file, you need to provide the voxel size (voxel size), the origin (originator) information, which is not known. Other parameters to do later to understand.
Medical Image Process_nifti file header file parsing