]> Creatis software - gdcm.git/commitdiff
fix mistyping
authorjpr <jpr>
Wed, 4 Mar 2009 08:57:40 +0000 (08:57 +0000)
committerjpr <jpr>
Wed, 4 Mar 2009 08:57:40 +0000 (08:57 +0000)
Example/CMakeLists.txt
Example/PrintFile.cxx
src/gdcmTS.cxx

index 760f81f2880c720d42e1e5edcd82b2e94d887462..df209e4c3f7009cb3e1b89f1b749177c69b9096a 100644 (file)
@@ -9,6 +9,7 @@ SET(EXAMPLE_SOURCES
   #Txt2Mat  
   #exDicomRTStructSetFile  
   #exExtractCSA
   exReadPapyrus  
   exReadWriteFile  
   exColorToRGB  
@@ -29,6 +30,7 @@ SET(EXAMPLE_SOURCES
   
   # the following are utilities
   #----------------------------
+  #BrukerToMhd
   RawToInTagDicom
   RawToDicomStack  
   PrintDicomDir  
@@ -46,6 +48,10 @@ SET(EXAMPLE_SOURCES
   RawToDicom  
   TestValidate
   
+ SplitIntoDirectories
+ SplitIntoXCoherentDirectories
+ SplitIntoXCoherentDirectoriesIgnoreSerieUID 
+  
   # the following produce usable files for some softwares.
   #------------------------------------------------------   
   ToMRIregister
index 0f3e82eaf67f48f82d7bec3a07e3b2a798410955..a89c6260a9f8ec2e7880ffea56b3b98faf0e5350 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/05/20 09:21:22 $
-  Version:   $Revision: 1.91 $
+  Date:      $Date: 2009/03/04 08:57:40 $
+  Version:   $Revision: 1.92 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -439,6 +439,8 @@ if (!noex)
       if (ori != "\\" )
          std::cout << "Orientation [" << ori << "]" << std::endl;
       o->Delete();
+      
+      
 /*      
 std::vector <double> valueVector; 
 GDCM_NAME_SPACE::DataEntry *e_0018_5212 = f->GetDataEntry(0x0018, 0x5212);
@@ -452,7 +454,65 @@ if (resJP) {
 }
 //e_0018_5212->Delete();
 */       
-      
+
+
+/* -----------------------------
+
+// Try :
+std::cout << std::endl << std::endl << "===========Try Get Numerical ======="
+          << std::endl;
+GDCM_NAME_SPACE::DataEntry *e;
+bool res;
+std::vector<double> vd;
+
+// Transfert Syntax
+e=f->GetDataEntry(0x0002,0x0010);
+if (e){
+  res=e->GetNumerical(vd);
+  if (!res){
+    std::cout << "0x0002,0x0010 not numerical, size =" << vd.size() << std::endl;  
+  }
+}
+// Columns
+e=f->GetDataEntry(0x0028,0x0011);
+if (e){
+  res=e->GetNumerical(vd);
+  if (!res){
+    std::cout << "0x0028,0x0011 not numerical, size =" << vd.size() << std::endl;  
+  } else {
+    std::cout << "0x0028,0x0011 numerical, size =" << vd.size() << std::endl;
+    std::cout << vd[0]<< std::endl;
+  }
+}
+// Im Orient (Pat)
+e=f->GetDataEntry(0x0020,0x0032);
+if (e){
+  res=e->GetNumerical(vd);
+  if (!res){
+    std::cout << "0x0020,0x0032 not numerical, size =" << vd.size() << std::endl;  
+  } else {
+    std::cout << "0x0020,0x0032 numerical, size =" << vd.size() << std::endl;
+    for(int l=0; l<vd.size(); l++)
+      std::cout << "vd[" << l << "]=" << vd[l]<< std::endl;
+  }
+}
+
+// Pixel Spacing
+
+e=f->GetDataEntry(0x0028,0x0030);
+if (e){
+  res=e->GetNumerical(vd);
+  if (!res){
+    std::cout << "0x0028,0x0030 not numerical, size =" << vd.size() << std::endl;  
+  } else {
+    std::cout << "0x0028,0x0030 numerical, size =" << vd.size() << std::endl;
+    for(int l=0; l<vd.size(); l++)
+      std::cout << "vd[" << l << "]=" << vd[l]<< std::endl;
+  }
+}
+
+----------------------------------------------*/  
+    
 }  
 //------------------------------
 
index d3751af010960f019bbcb709a2a12d97ef3a2692..93e9ef3b1b3bf317f9c81b9441db48799e1e9c93 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmTS.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/05/23 14:18:11 $
-  Version:   $Revision: 1.55 $
+  Date:      $Date: 2009/03/04 08:57:42 $
+  Version:   $Revision: 1.56 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -31,7 +31,7 @@
 // Implicit VR - Big Endian
 // http://www.gemedicalsystemseurope.com/euen/it_solutions/pdf/lsqxi_rev2.pdf
 // G.E. deliberately violated a lot of Dicom rules are
-// (probabely to to avoid other people to read their images)
+// (probabely to avoid other people to read their images)
 // Just try and error on new images :
 // PrintFile debug filein=...
 // and fix the bugs