]> Creatis software - gdcm.git/commitdiff
Normalization
authorjpr <jpr>
Fri, 28 Sep 2007 14:09:20 +0000 (14:09 +0000)
committerjpr <jpr>
Fri, 28 Sep 2007 14:09:20 +0000 (14:09 +0000)
Example/MakeDicomDir.cxx
Example/ToInTag.cxx

index e2d4a68bb0fe5c06344a5ec7b91fe822363bc26f..6046ac506f4caf784c2deb1da2d8e290495cb4d6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: MakeDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/05/23 14:18:04 $
-  Version:   $Revision: 1.24 $
+  Date:      $Date: 2007/09/28 14:09:20 $
+  Version:   $Revision: 1.25 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -39,7 +39,7 @@ int main(int argc, char *argv[])
    START_USAGE(usage)
    " \n MakeDicomDir :\n                                                      ",
    " Explores recursively the given directory, makes the relevant DICOMDIR    ",
-   "          and writes it as 'NewDICOMDIR'                                  ",
+   "          and writes it as 'DICOMDIR'                                     ",
    "                                                                          ", 
    " usage: MakeDicomDir dirname=rootDirectoryName                            ",
    "                     name=DICOMDIR file name                              ",
index 01e9c0ff0909cfa627c3681cdf04f1cdc95d5853..8d2ae3ea8f9015838554d1ea8ec97feb14115832 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: ToInTag.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/09/20 12:15:06 $
-  Version:   $Revision: 1.18 $
+  Date:      $Date: 2007/09/28 14:09:20 $
+  Version:   $Revision: 1.19 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -176,15 +176,15 @@ int main(int argc, char *argv[])
       return 0;         
    }
    
-   int taggrid = am->ArgMgrDefined("taggrid");
-   
-   int hasSkel = am->ArgMgrDefined("skel");
+   bool taggrid = ( 0 != am->ArgMgrDefined("taggrid") );
+      
+   bool hasSkel = ( 0 != am->ArgMgrDefined("hasSkel") );    
    const char *skel;
    if (hasSkel)
-      skel = am->ArgMgrGetString("skel");   
+      skel = am->ArgMgrGetString("skel");
       
    const char *extent  = am->ArgMgrGetString("extent",".DCM");
-   const char *input  = am->ArgMgrGetString("input","DCM");
+   const char *input   = am->ArgMgrGetString("input","DCM");
    
    // if unused Param we give up
    if ( am->ArgMgrPrintUnusedLabels() )
@@ -408,7 +408,7 @@ int main(int argc, char *argv[])
  
          userFileIdentifier = tokens[IND_PatientName] + token + tokens[IND_SerieInstanceUID] + token + tokens[IND_ImagePosition] + token 
                     + tokens[IND_TriggerTime] + token + tokens[IND_PhaseEncodingDirection] + token + tokens[IND_seriesDescription] + token
-                    +  tokens[IND_FileName] + token;
+                    + tokens[IND_FileName] + token;
       }
          
       if (verbose)