]> Creatis software - gdcm.git/commitdiff
Minor changes
authorjpr <jpr>
Mon, 17 Jul 2006 13:24:59 +0000 (13:24 +0000)
committerjpr <jpr>
Mon, 17 Jul 2006 13:24:59 +0000 (13:24 +0000)
Example/AnonymizeNoLoad.cxx
Example/MakeDicomDir.cxx
Example/PrintDicomDir.cxx
Example/ToInTag.cxx

index 12a24e481c875fd3f245271c4e2c700374db485d..5e66ae8203208ccc6f0de3e135f64592a9e92aeb 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: AnonymizeNoLoad.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/03/27 19:02:43 $
-  Version:   $Revision: 1.17 $
+  Date:      $Date: 2006/07/17 13:25:00 $
+  Version:   $Revision: 1.18 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -43,7 +43,7 @@ int main(int argc, char *argv[])
    "       noshadowseq: user doesn't want to load Private Sequences           ",
    "       noshadow   : user doesn't want to load Private groups (odd number) ",
    "       noseq      : user doesn't want to load Sequences                   ",
-   "       debug      : user wants to run the program in 'debug mode'         ",
+   "       debug      : developper wants to run the program in 'debug mode'   ",
    FINISH_USAGE
 
    // ----- Initialize Arguments Manager ------
index 2fc7051e17dea5693e1f34db09c39649bce0e4df..2cb6d11825e86fd07e57fb4c05f23f2db2d8b69b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: MakeDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/01/26 15:52:42 $
-  Version:   $Revision: 1.20 $
+  Date:      $Date: 2006/07/17 13:25:00 $
+  Version:   $Revision: 1.21 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -22,6 +22,8 @@
 #include "gdcmDebug.h"
 #include "gdcmArgMgr.h"
 
+#include <sys/times.h>
+
 #include <iostream>
 
 /**
@@ -97,6 +99,8 @@ int main(int argc, char *argv[])
 
    gdcm::DicomDir *dcmdir;
 
+
+   
    // we ask for Directory parsing
 
    dcmdir = gdcm::DicomDir::New( );
@@ -104,7 +108,14 @@ int main(int argc, char *argv[])
    dcmdir->SetLoadMode(loadMode);
    dcmdir->SetDirectoryName(dirName);
    //dcmdir->SetParseDir(true);
+   
+      struct tms tms1, tms2; // Time measurements
+      times(&tms1);   
    dcmdir->Load();
+      times(&tms2);      
+      std::cout 
+        << (long) ((tms2.tms_utime)  - (tms1.tms_utime)) 
+        << std::endl;
 
    if ( gdcm::Debug::GetDebugFlag() )
       std::cout << "======================= End Parsing Directory" << std::endl;
index dc82ec88506064d5109af6695ee7328aed55097c..76fb0b519334ec0cebef637ea90b836fcdc84336 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/01/18 15:45:21 $
-  Version:   $Revision: 1.32 $
+  Date:      $Date: 2006/07/17 13:27:04 $
+  Version:   $Revision: 1.33 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -145,6 +145,7 @@ int main(int argc, char* argv[])
             { // on degouline les STUDY de ce patient
                std::cout << "--- Stud.descr:["    << st->GetEntryString(0x0008, 0x1030) << "]"; // Study Description 
                std::cout << " Stud.ID:["          << st->GetEntryString(0x0020, 0x0010) << "]"; // Study ID
+               std::cout << " Stud.Inst.UID:["    << st->GetEntryString(0x0020, 0x000d) << "]"; // Study Instance UID
                std::cout << std::endl; 
                st = pa->GetNextStudy();
             }
@@ -170,6 +171,7 @@ int main(int argc, char* argv[])
             { // on degouline les STUDY de ce patient
                std::cout << "--- Stud.descr:["    << st->GetEntryString(0x0008, 0x1030) << "]"; // Study Description 
                std::cout << " Stud.ID:["          << st->GetEntryString(0x0020, 0x0010) << "]"; // Study ID
+               std::cout << " Stud.Inst.UID:["    << st->GetEntryString(0x0020, 0x000d) << "]"; // Study Instance UID       
                std::cout << std::endl;
 
                se = st->GetFirstSerie();
@@ -178,6 +180,7 @@ int main(int argc, char* argv[])
                   std::cout << "--- --- Ser.Descr:["<< se->GetEntryString(0x0008, 0x103e)<< "]";  // Series Description
                   std::cout << " Ser.nb:["          << se->GetEntryString(0x0020, 0x0011);        // Series number
                   std::cout << "] Mod.:["           << se->GetEntryString(0x0008, 0x0060) << "]"; // Modality
+                  std::cout << " Serie Inst.UID.:[" <<  se->GetEntryString(0x0020, 0x000e) << "]";  // Series Instance UID
                   std::cout << std::endl;    
                   se = st->GetNextSerie();   
                }
index dde01a4cb8a8c7cf96b3118dd0f1483906d88776..85b085875d622b8503d8575c10f256f16c850229 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: ToInTag.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/06/30 09:58:08 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2006/07/17 13:24:59 $
+  Version:   $Revision: 1.7 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -68,7 +68,7 @@ int main(int argc, char *argv[])
    "           0x0021, 0x1040 : 'FRAME INDEX'                                 ",
    "           0x0020, 0x0012 : 'SESSION INDEX'  (Acquisition Number)         ",
    " usage:                                                                   ",
-   " PhilipsToBrucker dirin=rootDirectoryName                                 ",
+   " ToInTag          dirin=rootDirectoryName                                 ",
    "                  dirout=outputDirectoryName                              ",
    "                  {  [keep= list of seriesNumber to process]              ",
    "                   | [drop= list of seriesNumber to ignore] }             ",