Hi Giorgos - it's even easier than that!
avwmaths_16SI <any_input> <short_output>
You can call avwmaths with a variety of different datatype - look in
fsl/bin. (If you call just "avwmaths" then the datatype it works in will
get set by the input image.)
Thanks, Steve.
On Mon, 24 Mar 2003, Giorgos Karas wrote:
> ok, i figured it out, had to be short... sigh, i want to hide in the ground
> or something now... :)
>
> anyway, here is the script which other people might find useful:
>
> #!/bin/bash
>
> echo "1 0 0 0
> 0 1 0 0
> 0 0 1 0
> 0 0 0 1">eye.mat
>
> for i in m*.img
> do
> base=`echo $i | sed 's/.img//'`
> short="i$base"
> echo "Converting floating point $i to short"
> flirt -datatype short -in $i -ref $i -applyxfm -init eye.mat -out
> $short
> rm -rf eye.mat
> done
> exit
>
Stephen M. Smith MA DPhil CEng MIEE
Associate Director, FMRIB and Analysis Research Coordinator
Oxford University Centre for Functional MRI of the Brain
John Radcliffe Hospital, Headington, Oxford OX3 9DU, UK
+44 (0) 1865 222726 (fax 222717)
[log in to unmask] http://www.fmrib.ox.ac.uk/~steve
|