]> Creatis software - gdcm.git/blobdiff - Example/PhilipsToBrucker2.cxx
Add MagnetomVisionToBrucker
[gdcm.git] / Example / PhilipsToBrucker2.cxx
index 1fd2dc2148a3f5f632b738dd774f144571d7e1fe..50395e582871a50fc983ff3b783fd7723787d8d5 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PhilipsToBrucker2.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/01/18 10:21:37 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2006/01/25 11:08:18 $
+  Version:   $Revision: 1.6 $
                                                                                 
   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,7 @@ int main(int argc, char *argv[])
    }
    
    char *extent  = am->ArgMgrGetString("extent",".DCM");
-        
+   
    // if unused Param we give up
    if ( am->ArgMgrPrintUnusedLabels() )
    { 
@@ -340,7 +341,7 @@ int main(int argc, char *argv[])
    previousPhaseEncodingDirection = "";
    previousTriggerTime            = "";
    
-   int sliceIndex = 1;
+   int sliceIndex = 0; // Is incremented *at the beginning* of processing
    int frameIndex = 1;
    int flag       = 0;
        
@@ -522,7 +523,7 @@ int main(int argc, char *argv[])
       {
          std::cout << "Fail to write :[" << fullWriteFilename << "]"
                    << std::endl;
-      }
-      fh->gdcm::FileHelper::Delete();                
+      } 
+      fh->Delete();                
    }
  }