Print

Print


Hello,
	    If you have a text file containing 1000 values then the command

fslascii2img myFile.txt 20 10 5 1 2 2 2 6 outputFile

will write them to a file of voxel dimensions 20x10x5x1, with voxel sizes of 2mm, and a TR of 6. 

Hope this helps,
Kinds Regards
Matthew

> Thanks Matthew,
> is the function I need,
> 
> one related question:
> 
> the syntax suggested is
> Usage: fslascii2img <input> <xsize> <ysize> <zsize> <tsize> <xdim> <ydim> 
> <zdim> <TR>  <output>
> 
> Is it possible to see a code example?
> 
> Thanks again
> AAV
> 
> 
> 
>> ----Messaggio originale----
>> Da: Matthew Webster <[log in to unmask]>
>> Data: 25-feb-2016 10.27
>> A: <[log in to unmask]>
>> Ogg: Re: [FSL] from txt to nii
>> 
>> Hello,
>> 	  fslascii2img should do what you need.
>> 
>> Kind Regards
>> Matthew
>>> Dear FSL experts,
>>> 
>>> I am managing a file txt coming from a nii file, and now, after some 
> modification, I would like to reconvert my txt file in a new nii. 
>>> Are there some tools in FSL able to do this operation? 
>>> 
>>> (could be useful to convert txt in xml, and then in nii?)
>>> 
>>> Thanks in advance 
>>> AAV
>>