Skip to content
Snippets Groups Projects
Commit c22a63a4 authored by Mark Jenkinson's avatar Mark Jenkinson
Browse files

Made output image name optional, so that matrix can be written to stdout like with fslswapdim

parent 452db619
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/bin/sh
if [ $# -lt 2 ] ; then if [ $# -lt 1 ] ; then
echo "Usage: `basename $0` <input_image> <output_image>" echo "Usage: `basename $0` <input_image> [output_image]"
echo " " echo " "
echo "`basename $0` is a tool for reorienting the image to match the" echo "`basename $0` is a tool for reorienting the image to match the"
echo "approximate orientation of the standard template images (MNI152)." echo "approximate orientation of the standard template images (MNI152)."
...@@ -10,6 +10,8 @@ if [ $# -lt 2 ] ; then ...@@ -10,6 +10,8 @@ if [ $# -lt 2 ] ; then
echo "It requires NIfTI images with valid orientation information" echo "It requires NIfTI images with valid orientation information"
echo "in them (seen by valid labels in FSLView). This tool" echo "in them (seen by valid labels in FSLView). This tool"
echo "assumes the labels are correct - if not, fix that before using this." echo "assumes the labels are correct - if not, fix that before using this."
echo "If the output name is not specified the equivalent transformation"
echo " matrix is written to the standard output"
echo " " echo " "
exit 1 exit 1
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment