i want to convert the ".annot" files to nifti. When i used "mri_label2vol", I used this command

mri_label2vol --subject fsaverage --annot $FREESURFER_HOME/subjects/fsaverage/surf/lh.ic3.annot --o test.img --hemi lh --regheader $FREESURFER_HOME/subjects/fsaverage/mri/brain.mgz --temp $FREESURFER_HOME/subjects/fsaverage/mri/brain.mgz

But the error is:

Number of labels: 0
Annot File:      /usr/local/freesurfer/subjects/fsaverage/surf/lh.ic3.annot
Template Volume: /usr/local/freesurfer/subjects/fsaverage/mri/brain.mgz
Outut Volume: test.img
Registration File: (null)
Fill Threshold: 0
Label Vox Vol:  1
ProjType:       (null)
ProjTypeId:     0
ProjStart:      0
ProjStop:       0
ProjDelta:      0.1
Subject:  fsaverage
Hemi:     lh
UseNewASeg2Vol:  1
DoLabelStatVol  0
$Id: mri_label2vol.c,v 1.32 2009/10/22 23:35:53 greve Exp $
Template RAS-to-Vox: --------
-1.000   0.000   0.000   128.000;
-0.000  -0.000  -1.000   128.000;
-0.000   1.000  -0.000   128.000;
 0.000   0.000   0.000   1.000;
Template Voxel Volume: 1
nHits Thresh: 0
Computing registration based on header
RegMat: --------
 1.000   0.000   0.000   0.000;
 0.000   1.000   0.000   0.000;
 0.000   0.000   1.000   0.000;
 0.000   0.000   0.000   1.000;
Label RAS-to-Vox: --------
-1.000   0.000   0.000   128.000;
 0.000   0.000  -1.000   128.000;
 0.000   1.000   0.000   128.000;
 0.000   0.000   0.000   1.000;
  INFO: loading surface  /usr/local/freesurfer/subjects/fsaverage/surf/lh.white
nvertices = 163842
Reading thickness /usr/local/freesurfer/subjects/fsaverage/surf/lh.thickness
Loading annotations from /usr/local/freesurfer/subjects/fsaverage/surf/lh.ic3.annot
reading colortable from annotation file...
colortable with 642 entries read (originally /usr/local/freesurfer/lib/bem/ic3.tri)
annotidmax = 640
Allocating Hit Volume (-2147483648) voxels
MRIalloc(256, 256, 256): could not allocate 131072 bytes for 22494th slice

Cannot allocate memory


Does anyone know, why is that happening and how can I correct
it?

--
Good Luck
============================================
Life Sciences Research Center
Xidian University
Xi'an China
http://life.xidian.edu.cn
liujixin@life.xidian.edu.cn
liujixin2010@gmail.com
============================================