Mercurial > hg > minc-tools
changeset 2441:d9c8228b2f2e
* added Claude to AUTHORS
* added a patch for history to xfmconcat from Mishkin Derakhshan
author | rotor <rotor> |
---|---|
date | Wed, 23 Jan 2008 22:54:35 +0000 |
parents | bb6cdfe32b9c |
children | ba91a7a9b695 |
files | AUTHORS BUGS progs/xfm/xfmconcat.c |
diffstat | 3 files changed, 12 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/AUTHORS +++ b/AUTHORS @@ -1,11 +1,9 @@ Peter Neelin designed, coded, and maintained MINC (1992-2002). David MacDonald designed, coded, and maintained VolumeIO (1991-1998). - Current maintenance is done on the minc-development mailing list. http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-development - MINC Contributors Colin Holmes
deleted file mode 100644 --- a/BUGS +++ /dev/null @@ -1,10 +0,0 @@ -Date: Tue, 06 May 2003 09:46:32 -0400 -From: Natasa Kovacevic <nkovacev@pandora.bioinfo.sickkids.on.ca> - -I beleive that there is a bug in xfmconcat in case when more then one -grid transform gets concatenated (here I am refering to minc-1.0, so -disregard the whole thing if it has been fixed in 1.1). What happens -is that all grid files involved in concatenation get the same -name. This way they get overwritten during copying and the end product -is a transfrom in which all displacement volumes are one and the same, -namely the last one that appears in the concatenation.
--- a/progs/xfm/xfmconcat.c +++ b/progs/xfm/xfmconcat.c @@ -10,7 +10,11 @@ @CREATED : August 13, 1993 (Peter Neelin) @MODIFIED : * $Log: xfmconcat.c,v $ - * Revision 6.5 2008-01-17 02:33:06 rotor + * Revision 6.6 2008-01-23 22:54:35 rotor + * * added Claude to AUTHORS + * * added a patch for history to xfmconcat from Mishkin Derakhshan + * + * Revision 6.5 2008/01/17 02:33:06 rotor * * removed all rcsids * * removed a bunch of ^L's that somehow crept in * * removed old (and outdated) BUGS file @@ -75,6 +79,7 @@ #include <string.h> #include <volume_io.h> #include <ParseArgv.h> + #include <time_stamp.h> /* Constants */ #ifndef TRUE @@ -94,7 +99,11 @@ General_transform trans1, trans2, trans3; General_transform *new_result, *old_result, *input, *temp_result; int iarg, first_arg, last_arg, output_arg; - + char *arg_string; + + /* collect the command line for history */ + arg_string = time_stamp(argc, argv); + /* Check arguments */ if (ParseArgv(&argc, argv, argTable, 0) || argc < 3) { (void) fprintf(stderr, @@ -138,7 +147,7 @@ } /* End of loop through arguments */ /* Write out the transform */ - if (output_transform_file(argv[output_arg], NULL, new_result) != OK) { + if (output_transform_file(argv[output_arg], arg_string, new_result) != OK) { (void) fprintf(stderr, "%s: Error writing transform file %s\n", argv[0], argv[output_arg]); exit(EXIT_FAILURE);