]> Creatis software - gdcm.git/commitdiff
* Add usefull comments in Header
authorregrain <regrain>
Tue, 23 Nov 2004 17:12:25 +0000 (17:12 +0000)
committerregrain <regrain>
Tue, 23 Nov 2004 17:12:25 +0000 (17:12 +0000)
Example/PrintFile.cxx
src/gdcmHeader.cxx

index 36bb2ac352a5eff3bd5391f1d071b4c001253822..9574f710db6a55da74c373efa12a657eb82eb259 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/16 04:26:17 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2004/11/23 17:12:25 $
+  Version:   $Revision: 1.11 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -59,7 +59,7 @@ int main(int argc, char* argv[])
    planarConfig = e1->GetPlanarConfiguration();
    
    std::cout << " pixelType="           << pixelType 
-             << " SampleserPixel="      << sPP
+             << " SamplesPerPixel="     << sPP
              << " PlanarConfiguration=" << planarConfig 
              << std::endl 
              << " PhotometricInterpretation=" 
index 4f4aefe0790c863504b630a75bca9c7cb478d9b5..84aea4d314918aebaf370a2fe606bf8298b94302 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmHeader.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/23 01:10:40 $
-  Version:   $Revision: 1.204 $
+  Date:      $Date: 2004/11/23 17:12:25 $
+  Version:   $Revision: 1.205 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -1177,6 +1177,7 @@ void Header::SetImageDataSize(size_t ImageDataSize)
    DocEntry *a = GetDocEntryByNumber(GrPixel, NumPixel);
    a->SetLength(ImageDataSize);
 
+   // Change the value of the BinEntry, not the BinArea !!!
    ImageDataSize += 8;
    car = Util::Format("%d", ImageDataSize);
    car = Util::DicomString( car.c_str() );