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

Fixed buglets

parent d5d5beb9
No related branches found
No related tags found
No related merge requests found
...@@ -40,10 +40,13 @@ int main(int argc,char *argv[]) ...@@ -40,10 +40,13 @@ int main(int argc,char *argv[])
} }
bool verbose = false; bool verbose = false;
if ( (argc>=5) && (argv[4]=="-v") ) { if (argc>=5) {
verbose = true; string optarg=argv[4];
} else { if (optarg=="-v") {
cerr << "Unrecognised option: " << argv[4] << endl; verbose = true;
} else {
cerr << "Unrecognised option: " << optarg << endl;
}
} }
volume4D<float> vin; volume4D<float> vin;
...@@ -75,7 +78,7 @@ int main(int argc,char *argv[]) ...@@ -75,7 +78,7 @@ int main(int argc,char *argv[])
meants += vin.voxelts(x,y,z); meants += vin.voxelts(x,y,z);
num++; num++;
if (verbose) { if (verbose) {
cout << x << " " << y " " << z " " << vin.voxelts(x,y,z).t(); cout << x << " " << y << " " << z << " " << vin.voxelts(x,y,z).t();
} }
} }
} }
......
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