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

Corrected typo

parent 241a116d
No related branches found
No related tags found
No related merge requests found
// fslcpgeom.cc - Copy certain parts of an AVW header // fslcpgeom.cc - Copy certain parts of an AVW header
// Mark Jenkinson, Steve Smith and Matthew Webster, FMRIB Image Analysis Group // Mark Jenkinson, Steve Smith and Matthew Webster, FMRIB Image Analysis Group
// Copyright (C) 2001-2005 University of Oxford // Copyright (C) 2001-2018 University of Oxford
// CCOPYRIGHT // CCOPYRIGHT
#include "newimage/newimageall.h" #include "newimage/newimageall.h"
using namespace NEWIMAGE; using namespace NEWIMAGE;
void print_usage(const string& progname) void print_usage(const string& progname)
{ {
cout << endl; cout << endl;
cout << "Usage: fslcpgeom <source> <destination> [-d]" << endl; cout << "Usage: fslcpgeom <source> <destination> [-d]" << endl;
...@@ -23,7 +23,7 @@ int avwcpgeom_main(int argc, char *argv[]) ...@@ -23,7 +23,7 @@ int avwcpgeom_main(int argc, char *argv[])
try { try {
headerSrc=reader.loadHeader(return_validimagefilename(string(argv[1]))); headerSrc=reader.loadHeader(return_validimagefilename(string(argv[1])));
headerDest=reader.loadHeader(fullDestinationName); headerDest=reader.loadHeader(fullDestinationName);
} catch (...) { } catch (...) {
perror("Error opening files"); perror("Error opening files");
return EXIT_FAILURE; return EXIT_FAILURE;
} }
...@@ -46,13 +46,13 @@ int avwcpgeom_main(int argc, char *argv[]) ...@@ -46,13 +46,13 @@ int avwcpgeom_main(int argc, char *argv[])
headerDest.sformCode = headerSrc.sformCode; headerDest.sformCode = headerSrc.sformCode;
headerDest.setSForm(headerSrc.getSForm()); headerDest.setSForm(headerSrc.getSForm());
headerDest.qformCode = headerSrc.qformCode; headerDest.qformCode = headerSrc.qformCode;
headerDest.setSForm(headerSrc.getQForm()); headerDest.setQForm(headerSrc.getQForm());
headerDest.pixdim=headerSrc.pixdim; headerDest.pixdim=headerSrc.pixdim;
if (copydim) if (copydim)
headerDest.dim=headerSrc.dim; headerDest.dim=headerSrc.dim;
reader.saveImage(fullDestinationName,buffer,extensions,headerDest,FslIsCompressedFileType(fslFileType(fullDestinationName))); reader.saveImage(fullDestinationName,buffer,extensions,headerDest,FslIsCompressedFileType(fslFileType(fullDestinationName)));
return 0; return 0;
} }
...@@ -60,12 +60,10 @@ int avwcpgeom_main(int argc, char *argv[]) ...@@ -60,12 +60,10 @@ int avwcpgeom_main(int argc, char *argv[])
int main(int argc,char *argv[]) int main(int argc,char *argv[])
{ {
if (argc < 3) if (argc < 3)
{ {
print_usage(string(argv[0])); print_usage(string(argv[0]));
return 1; return 1;
} }
return avwcpgeom_main(argc,argv); return avwcpgeom_main(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