]> Creatis software - gdcm.git/commitdiff
Add 'input' param to PhilipsToBrucker2
authorjpr <jpr>
Thu, 19 Jan 2006 11:43:48 +0000 (11:43 +0000)
committerjpr <jpr>
Thu, 19 Jan 2006 11:43:48 +0000 (11:43 +0000)
Example/PhilipsToBrucker2.cxx
Example/PrintFile.cxx

index a01221c00dc0df44d8b1e322e005acacb5ce6f43..7f33f5075732ed0b53329dc1f40182be953963f8 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PhilipsToBrucker2.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/01/18 15:45:21 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2006/01/19 11:43:48 $
+  Version:   $Revision: 1.4 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -73,6 +73,7 @@ int main(int argc, char *argv[])
    "                  dirout=outputDirectoryName                              ",
    "                  {  [keep= list of seriesNumber to process]              ",
    "                   | [drop= list of seriesNumber to ignore] }             ",
+   "                  [input = {ACR|DCM}]                                     ", 
    "                  [extent=image suffix (.IMA, .NEMA, .DCM, ...)]          ",
    "                  [listonly] [split]                                      ",
    "                  [noshadowseq][noshadow][noseq] [verbose] [debug]        ",
@@ -146,7 +147,9 @@ int main(int argc, char *argv[])
    }
    
    char *extent  = am->ArgMgrGetString("extent",".DCM");
-        
+   
+   char *input =  am->ArgMgrGetString("input","DCM"); 
+         
    // if unused Param we give up
    if ( am->ArgMgrPrintUnusedLabels() )
    { 
index 1a6f11f303245036b8131567a5388d2cea6420c7..f3b9da41aad9ae5526feac02a9e4be7375317a8b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/01/18 15:45:21 $
-  Version:   $Revision: 1.77 $
+  Date:      $Date: 2006/01/19 11:43:48 $
+  Version:   $Revision: 1.78 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -544,7 +544,7 @@ errno = 0;
          if ( strPatientOrientation != gdcm::GDCM_UNFOUND
          && strPatientOrientation != "")  
             std::cout << "PatientOrientation (0x0020,0x0020)= [" 
-                     << strPatientOrientation << "]" << std::endl;
+                      << strPatientOrientation << "]" << std::endl;
 
          std::string strImageOrientationPatient = 
                                        f->GetEntryString(0x0020,0x0037);