3 ###############################################################################
5 # FILE: pts_to_landmarks
6 # AUTHOR: Vivien Delmon
8 # Conversion from landmarks in the format used in clitkCalculateTRE (.pts)
9 # to the format used in VV (.txt).
11 ###############################################################################
14 echo "Usage: $0 input.pts output.txt" 1>&2
17 to_append=/tmp/$RANDOM
18 to_prepend=/tmp/$RANDOM
20 for i in $(seq 0 $((`cat $1 | wc -l` - 1)));
22 echo 0' '0 >> $to_append
23 echo $i >> $to_prepend
26 echo "LANDMARKS1" > $2
27 paste -d ' ' $to_prepend $1 $to_append >> $2