]> Creatis software - gdcm.git/commitdiff
Add GetImagePositionPatient() checking
authorjpr <jpr>
Wed, 15 Nov 2006 16:00:34 +0000 (16:00 +0000)
committerjpr <jpr>
Wed, 15 Nov 2006 16:00:34 +0000 (16:00 +0000)
Testing/TestFileAccessors.cxx

index 0318eda06b89ab84c91c03ad092fc44d5b2068b1..6da538a2c30bf4ded65d93d0c6d0bb7b90398038 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestFileAccessors.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/04/07 10:58:51 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2006/11/15 16:00:34 $
+  Version:   $Revision: 1.10 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -58,6 +58,7 @@ int TestFileAccessors(int argc, char *argv[])
    int i = 0;
 
    float iop[6];
+   float ipp[3];
 
   // gdcm::Debug::DebugOn();
    
@@ -138,6 +139,11 @@ int TestFileAccessors(int argc, char *argv[])
       std::cout << "   Orientation:" << std::endl;
       for (int j=0; j<6; j++)
          std::cout << "      iop[" << j << "] = " << iop[j] << std::endl;
+      f->GetImagePositionPatient( ipp );
+      std::cout << "   Position:" << std::endl;
+      for (int j2=0; j2<3; j2++)
+         std::cout << "      ipp[" << j2 << "] = " << ipp[j2] << std::endl; 
 
       if( f->IsReadable() )
       {