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

more robustness

parent 54ee23e1
No related branches found
No related tags found
No related merge requests found
...@@ -50,10 +50,11 @@ int main(int argc,char *argv[]) ...@@ -50,10 +50,11 @@ int main(int argc,char *argv[])
ifstream input_file; ifstream input_file;
ofstream output_file; ofstream output_file;
char *temp,*outputName; char *temp,*outputName,*inputName;
FslGetHdrImgNames(argv[2],fslio,&temp,&outputName); FslGetHdrImgNames(argv[2],fslio,&temp,&outputName);
FslGetHdrImgNames(argv[1],fslio,&temp,&inputName);
char byte[1]; char byte[1];
input_file.open(argv[1],ios::in | ios :: binary); input_file.open(inputName,ios::in | ios :: binary);
output_file.open(outputName,ofstream::out | ofstream::binary); output_file.open(outputName,ofstream::out | ofstream::binary);
for(int i=1;i<=minft;i++) //Write Header for(int i=1;i<=minft;i++) //Write Header
......
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