Skip to content
Snippets Groups Projects
Commit 43295ca6 authored by Matthew Webster's avatar Matthew Webster
Browse files

merged true from 1.18

parent df6be6b1
No related branches found
No related tags found
No related merge requests found
...@@ -55,13 +55,13 @@ int fmrib_main(int argc,char *argv[]) ...@@ -55,13 +55,13 @@ int fmrib_main(int argc,char *argv[])
if (affmat.Determinant()<0.0) cout << "LR orientation changed" << endl; if (affmat.Determinant()<0.0) cout << "LR orientation changed" << endl;
else cout << "LR orientation preserved" << endl; else cout << "LR orientation preserved" << endl;
return 0; return 0;
} }
if (affmat.Determinant()<0.0) { if (affmat.Determinant()<0.0) {
cout << "WARNING:: Flipping Left/Right orientation (as det < 0)" << endl; cout << "WARNING:: Flipping Left/Right orientation (as det < 0)" << endl;
} }
invol.swapdimensions(newx,newy,newz); invol.swapdimensions(newx,newy,newz,true);
int retval=0; int retval=0;
if (outname!="") { if (outname!="") {
...@@ -70,17 +70,16 @@ int fmrib_main(int argc,char *argv[]) ...@@ -70,17 +70,16 @@ int fmrib_main(int argc,char *argv[])
return retval; return retval;
} }
int main(int argc,char *argv[]) int main(int argc,char *argv[])
{ {
string progname=argv[0]; string progname=argv[0];
if (argc<5) { if (argc<5) {
print_usage(progname); print_usage(progname);
return -1; return -1;
} }
string inname = argv[1]; string inname = argv[1];
// call the templated main // call the templated main
return call_fmrib_main(dtype(inname),argc,argv); return call_fmrib_main(dtype(inname),argc,argv);
} }
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