[MINC-users] xfmconcat history

Mishkin Derakhshan mishkind at gmail.com
Wed Jan 23 17:32:05 EST 2008


Hi,
I noticed that if you concat two (or more) xfms together with
xfmconcat, that the command is not recorded in the xfm's comments
field. xfminvert for example records the history of how the xfm was
created. I think this is an excellent feature so i played with the
xfmconcat code a bit so that it recorded things properly (at least I
think I am doing it properly).

The main change was
  if (output_transform_file(argv[output_arg], NULL, new_result) != OK) {
to
  if (output_transform_file(argv[output_arg], arg_string, new_result) != OK) {

where arg_string is:
  #include <time_stamp.h>
  char *arg_string;
  arg_string = time_stamp(argc, argv);

I would like to submit my new version to the cvs but I must admit that
I have no idea how to do this or what standards I would need to
follow. If someone can help me out that would be great, alternatively,
the new code is attached.

mishkin


More information about the MINC-users mailing list