]> Creatis software - gdcm.git/commitdiff
Add some verbosity (usefull at debugging time)
authorjpr <jpr>
Thu, 30 Aug 2007 11:51:29 +0000 (11:51 +0000)
committerjpr <jpr>
Thu, 30 Aug 2007 11:51:29 +0000 (11:51 +0000)
Testing/TestReadWriteJPEG2000ReadCompare.cxx
Testing/TestReadWriteJPEGReadCompare.cxx

index 9a097e0d9c5c6947b978e410b18236552e330b37..7cbc106da982e2deb4becd04a27bf82152309bf4 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestReadWriteJPEG2000ReadCompare.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/08/30 11:29:03 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2007/08/30 11:51:29 $
+  Version:   $Revision: 1.2 $
 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -154,9 +154,9 @@ static int CompareInternalJPEG2000(std::string const &filename, std::string cons
        
        if (j!=0)
        {           
-          std::cout << " Failed" << std::endl
+          std::cout  << std::endl << filename << " Failed"
                     << "        pixel (" 
-                    << PixelType
+                    << PixelType << " b alloc " << file->GetBitsAllocated() << " b stored " << file->GetBitsStored()
                     << ") differ (as expanded in memory)."
                     << std::endl
                     << "        compression : " 
@@ -188,9 +188,9 @@ static int CompareInternalJPEG2000(std::string const &filename, std::string cons
        }
        else
        {
-          std::cout << " some pixels" << std::endl
+          std::cout  << std::endl << filename << " : some pixels"
                     << "        (" 
-                    << PixelType
+                    << PixelType << " b alloc " << file->GetBitsAllocated() << " b stored " << file->GetBitsStored()
                     << ") differ +/-1 (as expanded in memory)."
                     << std::endl
                     << "        compression : " 
index 47e3702c2924d81ccd4785ed1cca8fa35f315260..87edc575baa9fad27ddc19759242d52eef00259c 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestReadWriteJPEGReadCompare.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/08/30 10:16:58 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2007/08/30 11:51:29 $
+  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
@@ -154,9 +154,9 @@ static int CompareInternalJPEG(std::string const &filename, std::string const &o
        
        if (j!=0)
        {           
-          std::cout << " Failed" << std::endl
+          std::cout  << std::endl << filename << " Failed"
                     << "        pixel (" 
-                    << PixelType
+                    << PixelType << " b alloc " << file->GetBitsAllocated() << " b stored " << file->GetBitsStored()
                     << ") differ (as expanded in memory)."
                     << std::endl
                     << "        compression : " 
@@ -188,9 +188,9 @@ static int CompareInternalJPEG(std::string const &filename, std::string const &o
        }
        else
        {
-          std::cout << " some pixels" << std::endl
+          std::cout  << std::endl << filename << " : some pixels"
                     << "        (" 
-                    << PixelType
+                    << PixelType << " b alloc " << file->GetBitsAllocated() << " b stored " << file->GetBitsStored()
                     << ") differ +/-1 (as expanded in memory)."
                     << std::endl
                     << "        compression : "