]> Creatis software - gdcm.git/commitdiff
* Add comments to explain the problem in the code (concerning my last commit)
authorregrain <regrain>
Wed, 10 Nov 2004 16:22:02 +0000 (16:22 +0000)
committerregrain <regrain>
Wed, 10 Nov 2004 16:22:02 +0000 (16:22 +0000)
  -- BeNours

src/gdcmPixelConvert.cxx

index c23cbe8ffbd2f832cf681e15c818ebf134ce9036..73ca0e8b04b686cec22f73515b19c6450a9fa98c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmPixelConvert.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/10 16:13:18 $
-  Version:   $Revision: 1.27 $
+  Date:      $Date: 2004/11/10 16:22:02 $
+  Version:   $Revision: 1.28 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -609,6 +609,10 @@ bool PixelConvert::ReadAndDecompressPixelData( std::ifstream* fp )
    }
    else if ( IsDecompressed )
    {
+      // This problem can be found when some obvious informations are found
+      // after the field containing the image datas. In this case, these
+      // bad datas are added to the size of the image (in the PixelDataLength
+      // variable). But DecompressedSize is the right size of the image !
       if( PixelDataLength != DecompressedSize)
       {
          dbg.Verbose( 0, "PixelConvert::ReadAndDecompressPixelData: "