Post edited 10:24 am – December 12, 2011 by Laura
Hi,
I was trying to work with the resulting "_odf.nii" file with Matlab and realise that the values in each voxel aren't between 0-1 as expected.
I load the file considering that the ODF file is a 4 byte float numbers, as you mention in the webpage for file format information. The ranging values are:
% "load_nii .m" from http://www.mathworks.com/matla…..lyze-tools
>>ODF=load_nii('dsi_odf.nii');
>> max(max(max(max(ODF.img))))
ans =
487500480
>> min(min(min(min(ODF.img))))
ans =
0
Also, when I plot the ODF with the given "181_vecs.txt", in almost every voxel I tried, the ODF is oriented perpendicular to the maximum expected. That's why I guess that maybe, I am not reading correctly the values (don't take into account the x,y,z axis values).



% ODF in one voxel
% In blue: the expected direction orientation
% ODF values with red(max_value)-blue(min_value)
Is there something wrong? What is the meaning of the resulting values?
I want to obtain de ODF values as a distribution function, that is, between 0-1. (*)
Any suggestion?
Thanks in advance,
Laura
___
* (ODF equation in page 36) Hagmann, Patric (April 21, 2005). "From Diffusion MRI to Brain Connectomics" (PDF). Ecole Polytechnique Federale de Lausanne. Ph.D. Thesis. pp. 1, 107.