Medical Image Process_nifti file header file parsing

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.