# HG changeset patch # User bert # Date 1112737944 0 # Node ID c409d3e452bae2737ebb6d83ee0a7a0ef86b10bc # Parent 91aba360a3e6dd3a053d01a0db7f3c87acf6c491 Add -minmax option to enable use of explicit DICOM pixel min/max information, and updated version number diff --git a/conversion/dcm2mnc/dcm2mnc.c b/conversion/dcm2mnc/dcm2mnc.c --- 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.8 2005-03-18 19:10:31 bert + * Revision 1.9 2005-04-05 21:52:24 bert + * Add -minmax option to enable use of explicit DICOM pixel min/max information, and updated version number + * + * Revision 1.8 2005/03/18 19:10:31 bert * Scan coordinate and location information for validity before relying on it * * Revision 1.7 2005/03/15 17:03:34 bert @@ -68,7 +71,7 @@ * ---------------------------------------------------------------------------- */ -static const char rcsid[]="$Header: /private-cvsroot/minc/conversion/dcm2mnc/dcm2mnc.c,v 1.8 2005-03-18 19:10:31 bert Exp $"; +static const char rcsid[]="$Header: /private-cvsroot/minc/conversion/dcm2mnc/dcm2mnc.c,v 1.9 2005-04-05 21:52:24 bert Exp $"; #include #include @@ -95,7 +98,7 @@ struct globals G; -#define VERSION_STRING "2.00.001 built " __DATE__ " " __TIME__ +#define VERSION_STRING "2.0.03 built " __DATE__ " " __TIME__ ArgvInfo argTable[] = { {NULL, ARGV_VERINFO, VERSION_STRING, NULL, NULL }, @@ -131,6 +134,12 @@ (char *) MOSAIC_SEQ_INTERLEAVED, (char *) &G.mosaic_seq, "Mosaic sequence is in interleaved slice order."}, + + {"-minmax", + ARGV_CONSTANT, + (char *)TRUE, + (char *) &G.useMinMax, + "Honor DICOM pixel minimum and pixel maximum values."}, {NULL, ARGV_END, NULL, NULL, NULL} };