changeset 2343:5e79f15d4458

Add -usecoordinates option
author bert <bert>
date Thu, 18 Aug 2005 18:17:36 +0000
parents f0229c8ecfdf
children 599dc5a01427
files conversion/dcm2mnc/dcm2mnc.c conversion/dcm2mnc/dcm2mnc.h
diffstat 2 files changed, 18 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/conversion/dcm2mnc/dcm2mnc.c
+++ b/conversion/dcm2mnc/dcm2mnc.c
@@ -5,7 +5,10 @@
 @CREATED    : June 2001 (Rick Hoge)
 @MODIFIED   : 
  * $Log: dcm2mnc.c,v $
- * Revision 1.14.2.9  2005-07-22 20:03:16  bert
+ * Revision 1.14.2.10  2005-08-18 18:17:36  bert
+ * Add -usecoordinates option
+ *
+ * Revision 1.14.2.9  2005/07/22 20:03:16  bert
  * Minor change to consider sequence name when finding series boundaries
  *
  * Revision 1.14.2.8  2005/07/12 16:01:14  bert
@@ -113,7 +116,7 @@
  *
 ---------------------------------------------------------------------------- */
 
-static const char rcsid[]="$Header: /private-cvsroot/minc/conversion/dcm2mnc/dcm2mnc.c,v 1.14.2.9 2005-07-22 20:03:16 bert Exp $";
+static const char rcsid[]="$Header: /private-cvsroot/minc/conversion/dcm2mnc/dcm2mnc.c,v 1.14.2.10 2005-08-18 18:17:36 bert Exp $";
 
 #define GLOBAL_ELEMENT_DEFINITION /* To define elements */
 #include "dcm2mnc.h"
@@ -207,6 +210,11 @@
      (char *)&G.dirname_format,
      "Set format for output directory name."},
 
+    {"-usecoordinates",
+     ARGV_CONSTANT,
+     (char *) TRUE,
+     (char *) &G.prefer_coords,
+     "Derive step value from coordinates rather than slice spacing."},
     {NULL, ARGV_END, NULL, NULL, NULL}
 
 };
@@ -234,6 +242,7 @@
     G.dirname_format = NULL;
 
     G.minc_history = time_stamp(argc, argv); /* Create minc history string */
+    G.prefer_coords = FALSE;
 
     G.pname = argv[0];          /* get program name */
     
--- a/conversion/dcm2mnc/dcm2mnc.h
+++ b/conversion/dcm2mnc/dcm2mnc.h
@@ -7,7 +7,10 @@
 @MODIFIED   : 
 
  * $Log: dcm2mnc.h,v $
- * Revision 1.10.2.3  2005-06-09 20:46:11  bert
+ * Revision 1.10.2.4  2005-08-18 18:17:36  bert
+ * Add -usecoordinates option
+ *
+ * Revision 1.10.2.3  2005/06/09 20:46:11  bert
  * Fairly major fixes to use integers for all arguments, add filename_format and dirname_format to global options, always include math.h, and defined OPTS_NO_RESCALE for testing converter without ICV
  *
  * Revision 1.10.2.2  2005/05/16 19:45:23  bert
@@ -246,6 +249,9 @@
     int use_stdin;
     char * filename_format;
     char * dirname_format;
+    int prefer_coords;           /* In event of slice thickness conflict, 
+                                    use the coordinate information rather 
+                                    than the slice thickness or spacing. */
 };
 
 /* Values for options flags */