]> Creatis software - gdcm.git/blobdiff - src/gdcmFile.cxx
FIX: CV++
[gdcm.git] / src / gdcmFile.cxx
index 1051765fd8061ae42070ae335f06d38185353716..9351047766c5a75de5e3a692d031e20527ff8682 100644 (file)
@@ -160,7 +160,7 @@ bool gdcmFile::ReadPixelData(void* destination) {
                 
   // ------------------------------- JPEG LossLess : call to Jpeg Libido
    
-   if (IsJPEGLossless() && GetZSize() == 1) {
+   if (IsJPEGLossless() /*&& GetZSize() == 1*/) {
    
       int ln; //  Position on begining of Jpeg Pixels
       fseek(fp,4,SEEK_CUR);  // skipping (fffe,e000) : Basic Offset Table Item
@@ -426,16 +426,10 @@ size_t gdcmFile::GetImageDataIntoVector (void* destination, size_t MaxSize) {
          return (size_t)0; 
       }
    } 
+
 // Just to 'see' was was actually read on disk :-(
 // Some troubles expected
 
-//FILE *  fpSpurious;
-//fpSpurious=fopen("SpuriousFile.raw","w"); 
-//fwrite(destination,lgrTotale, 1,fpSpurious);
-//fclose(fpSpurious);
-
-
-
    // *Try* to deal with the color
    // ----------------------------
 
@@ -444,7 +438,7 @@ size_t gdcmFile::GetImageDataIntoVector (void* destination, size_t MaxSize) {
    // Planar configuration = 2 : 1 gray Plane + 3 LUT
 
    // Well ... supposed to be !
-   // See US-PAL-8-10x-echo.dcm, PlanarConfiguration=0,PhotometricInterpretation=PALETTE COLOR
+   // See US-PAL-8-10x-echo.dcm: PlanarConfiguration=0,PhotometricInterpretation=PALETTE COLOR
    // and heuristic has to be found :-( 
 
       std::string str_PhotometricInterpretation = gdcmHeader::GetPubElValByNumber(0x0028,0x0004);