Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
avwutils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
avwutils
Commits
c22a63a4
Commit
c22a63a4
authored
13 years ago
by
Mark Jenkinson
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fslreorient2std
+4
-2
4 additions, 2 deletions
fslreorient2std
with
4 additions
and
2 deletions
fslreorient2std
+
4
−
2
View file @
c22a63a4
#!/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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment