open-discussion > RE: Reading MRI images with nifti_image_read()
Jul 4, 2011  10:07 PM | Lirong TAN
RE: Reading MRI images with nifti_image_read()
Hi Rick,

Thanks a lot for your reply.

When I print out the nim->datatype, it is 2.

In addition, I have used the SPM MATLAB package to read the same .nii file, and the value for each voxel should be a float. But when I print out the intensity value of each voxel with the niftilib, the results are like the follows:

0.00
0.04
3172.52
219338047488.00
55137620.00
3806406451023314944.00
-0.00
-0.00
4748397052366938236172369920.00
60578802434048.00
14522176765952.00
4397719725159236790306996224.00
1334358177764039517291664218152501248.00
15145784836096.00
13845481472.00
16406166460247700406272.00
-0.00
-0.00
1245416489901059497201447731200.00
841094.25
3734923424825344.00
13076.84
48.81

How can I obtain the voxel intensity value correctly? Really appreciate it!

Lirong

Threaded View

TitleAuthorDate
Lirong TAN Jul 3, 2011
Richard Reynolds Jul 4, 2011
RE: Reading MRI images with nifti_image_read()
Lirong TAN Jul 4, 2011
Richard Reynolds Jul 5, 2011