Dear Andreas and Tim
Thanks a lot for your replies. I tried to use read_avw to read NIfTI data,
but I got some error messages. The purpose is that I want to put colormap,
colorbar and image together.
Any suggestions please?
Thanks in advance
rhuang
-----------about using read_avw.m--------------------
1) At the beginning, I set the filename:
fname='/data/mr_diffusion/huang/FSL_FEEDs/FSL_Course/CourseExample/
fsl_course_test/fdt/subj1/test_dti_FA.nii.gz';
2) Then, I used the function read_avw. The error messages were copied
here.
[img, dims,scales,bpp,endian] = read_avw(fname)
>> [img, dims,scales,bpp,endian] = read_avw(fname)
** ERROR: nifti_image_read(/data/mr_diffusion/huang/FSL_FEEDs/FSL_Course/
CourseExample/fsl_course_test/fdt/subj1/test_dti_FA.ni): can't open header
file
** ERROR: nifti_image_open(/data/mr_diffusion/huang/FSL_FEEDs/FSL_Course/
CourseExample/fsl_course_test/fdt/subj1/test_dti_FA.ni): bad header info
Error: failed to open file /data/mr_diffusion/huang/FSL_FEEDs/FSL_Course/
CourseExample/fsl_course_test/fdt/subj1/test_dti_FA.ni
Error:: FslGetIntensityScaling: Null pointer passed for FSLIO
??? Error using ==> fread
Invalid fid.
Error in ==> /nfsusr/local/fsl32b/etc/matlab/read_avw_hdr.m
On line 17 ==> testval = fread(fid,1,'int32');
Error in ==> /nfsusr/local/fsl32b/etc/matlab/read_avw.m
On line 33 ==> [dims,scales,bpp,endian,datatype]=
read_avw_hdr(tmpname);
----------------------------
|