view testdir/xfmconcat_01.sh @ 2552:345f8c960657

added ezminc library
author Vladimir S. FONOV <vladimir.fonov@gmail.com>
date Thu, 08 Dec 2011 18:47:56 -0500
parents afa80ebfd3b1
children
line wrap: on
line source

#! /bin/sh
#
# Test concatenation of grid transforms. 

set -e

# Create volume to use as displacement grid.
#
dd if=/dev/zero | ../rawtominc -vector 3 -byte -clobber _grid.mnc 8 8 8 

./create_grid_xfm _grid.mnc _t1.xfm
./create_grid_xfm _grid.mnc _t2.xfm
../xfmconcat -clobber _t1.xfm _t2.xfm _t3.xfm

# Make sure the displacement volumes have unique filenames.
#
test -n "`grep Displacement_Volume _t3.xfm |uniq -u`" || exit 1

exit 0