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

Added a bit of output

parent 732d115c
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,7 @@ int do_work(int argc, char *argv[]) ...@@ -37,6 +37,7 @@ int do_work(int argc, char *argv[])
amat = read_ascii_matrix(input_name); amat = read_ascii_matrix(input_name);
if (xsize*ysize*zsize*tsize != amat.Nrows() * amat.Ncols()) { if (xsize*ysize*zsize*tsize != amat.Nrows() * amat.Ncols()) {
cerr << "Sizes incompatible: " << xsize*ysize*zsize*tsize << " voxels vs " << amat.Nrows() * amat.Ncols() << " numbers" << endl; cerr << "Sizes incompatible: " << xsize*ysize*zsize*tsize << " voxels vs " << amat.Nrows() * amat.Ncols() << " numbers" << endl;
cerr << "Matrix dimensions are " << amat.Nrows() << " by " << amat.Ncols() << endl;
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
amat = reshape(amat.t(),tsize,xsize*ysize*zsize); amat = reshape(amat.t(),tsize,xsize*ysize*zsize);
......
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