1 /*=========================================================================
4 Module: $RCSfile: gdcmPixelReadConvert.cxx,v $
6 Date: $Date: 2005/02/03 10:03:07 $
7 Version: $Revision: 1.46 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
19 #include "gdcmDebug.h"
21 #include "gdcmGlobal.h"
23 #include "gdcmPixelReadConvert.h"
24 #include "gdcmDocEntry.h"
25 #include "gdcmRLEFramesInfo.h"
26 #include "gdcmJPEGFragmentsInfo.h"
29 #include <stdio.h> //for sscanf
33 //-----------------------------------------------------------------------------
34 #define str2num(str, typeNum) *((typeNum *)(str))
36 //-----------------------------------------------------------------------------
37 // Constructor / Destructor
38 PixelReadConvert::PixelReadConvert()
50 PixelReadConvert::~PixelReadConvert()
55 //-----------------------------------------------------------------------------
58 * \brief Predicate to know whether the image[s] (once Raw) is RGB.
59 * \note See comments of \ref ConvertHandleColor
61 bool PixelReadConvert::IsRawRGB()
64 || PlanarConfiguration == 2
72 * \brief Gets various usefull informations from the file header
73 * @param file gdcm::File pointer
75 void PixelReadConvert::GrabInformationsFromFile( File *file )
77 // Number of Bits Allocated for storing a Pixel is defaulted to 16
78 // when absent from the file.
79 BitsAllocated = file->GetBitsAllocated();
80 if ( BitsAllocated == 0 )
85 // Number of "Bits Stored", defaulted to number of "Bits Allocated"
86 // when absent from the file.
87 BitsStored = file->GetBitsStored();
88 if ( BitsStored == 0 )
90 BitsStored = BitsAllocated;
93 // High Bit Position, defaulted to "Bits Allocated" - 1
94 HighBitPosition = file->GetHighBitPosition();
95 if ( HighBitPosition == 0 )
97 HighBitPosition = BitsAllocated - 1;
100 XSize = file->GetXSize();
101 YSize = file->GetYSize();
102 ZSize = file->GetZSize();
103 SamplesPerPixel = file->GetSamplesPerPixel();
104 PixelSize = file->GetPixelSize();
105 PixelSign = file->IsSignedPixelData();
106 SwapCode = file->GetSwapCode();
107 std::string ts = file->GetTransferSyntax();
109 ( ! file->IsDicomV3() )
110 || Global::GetTS()->GetSpecialTransferSyntax(ts) == TS::ImplicitVRLittleEndian
111 || Global::GetTS()->GetSpecialTransferSyntax(ts) == TS::ImplicitVRLittleEndianDLXGE
112 || Global::GetTS()->GetSpecialTransferSyntax(ts) == TS::ExplicitVRLittleEndian
113 || Global::GetTS()->GetSpecialTransferSyntax(ts) == TS::ExplicitVRBigEndian
114 || Global::GetTS()->GetSpecialTransferSyntax(ts) == TS::DeflatedExplicitVRLittleEndian;
116 IsJPEG2000 = Global::GetTS()->IsJPEG2000(ts);
117 IsJPEGLS = Global::GetTS()->IsJPEGLS(ts);
118 IsJPEGLossy = Global::GetTS()->IsJPEGLossy(ts);
119 IsJPEGLossless = Global::GetTS()->IsJPEGLossless(ts);
120 IsRLELossless = Global::GetTS()->IsRLELossless(ts);
122 PixelOffset = file->GetPixelOffset();
123 PixelDataLength = file->GetPixelAreaLength();
124 RLEInfo = file->GetRLEInfo();
125 JPEGInfo = file->GetJPEGInfo();
127 PlanarConfiguration = file->GetPlanarConfiguration();
128 IsMonochrome = file->IsMonochrome();
129 IsPaletteColor = file->IsPaletteColor();
130 IsYBRFull = file->IsYBRFull();
132 /////////////////////////////////////////////////////////////////
134 HasLUT = file->HasLUT();
137 // Just in case some access to a File element requires disk access.
138 LutRedDescriptor = file->GetEntryValue( 0x0028, 0x1101 );
139 LutGreenDescriptor = file->GetEntryValue( 0x0028, 0x1102 );
140 LutBlueDescriptor = file->GetEntryValue( 0x0028, 0x1103 );
142 // Depending on the value of Document::MAX_SIZE_LOAD_ELEMENT_VALUE
143 // [ refer to invocation of Document::SetMaxSizeLoadEntry() in
144 // Document::Document() ], the loading of the value (content) of a
145 // [Bin|Val]Entry occurence migth have been hindered (read simply NOT
146 // loaded). Hence, we first try to obtain the LUTs data from the file
147 // and when this fails we read the LUTs data directly from disk.
148 /// \TODO Reading a [Bin|Val]Entry directly from disk is a kludge.
149 /// We should NOT bypass the [Bin|Val]Entry class. Instead
150 /// an access to an UNLOADED content of a [Bin|Val]Entry occurence
151 /// (e.g. BinEntry::GetBinArea()) should force disk access from
152 /// within the [Bin|Val]Entry class itself. The only problem
153 /// is that the [Bin|Val]Entry is unaware of the FILE* is was
154 /// parsed from. Fix that. FIXME.
157 file->LoadEntryBinArea(0x0028, 0x1201);
158 LutRedData = (uint8_t*)file->GetEntryBinArea( 0x0028, 0x1201 );
161 gdcmVerboseMacro( "Unable to read Red LUT data" );
165 file->LoadEntryBinArea(0x0028, 0x1202);
166 LutGreenData = (uint8_t*)file->GetEntryBinArea(0x0028, 0x1202 );
169 gdcmVerboseMacro( "Unable to read Green LUT data" );
173 file->LoadEntryBinArea(0x0028, 0x1203);
174 LutBlueData = (uint8_t*)file->GetEntryBinArea( 0x0028, 0x1203 );
177 gdcmVerboseMacro( "Unable to read Blue LUT data" );
181 ComputeRawAndRGBSizes();
184 bool PixelReadConvert::ReadAndDecompressPixelData( std::ifstream *fp )
186 // ComputeRawAndRGBSizes is already made by
187 // ::GrabInformationsFromfile. So, the structure sizes are
191 //////////////////////////////////////////////////
192 //// First stage: get our hands on the Pixel Data.
195 gdcmVerboseMacro( "Unavailable file pointer." );
199 fp->seekg( PixelOffset, std::ios::beg );
200 if( fp->fail() || fp->eof())
202 gdcmVerboseMacro( "Unable to find PixelOffset in file." );
208 //////////////////////////////////////////////////
209 //// Second stage: read from disk dans decompress.
210 if ( BitsAllocated == 12 )
212 ReadAndDecompress12BitsTo16Bits( fp);
216 // This problem can be found when some obvious informations are found
217 // after the field containing the image data. In this case, these
218 // bad data are added to the size of the image (in the PixelDataLength
219 // variable). But RawSize is the right size of the image !
220 if( PixelDataLength != RawSize)
222 gdcmVerboseMacro( "Mismatch between PixelReadConvert : "
223 << PixelDataLength << " and RawSize : " << RawSize );
225 if( PixelDataLength > RawSize)
227 fp->read( (char*)Raw, RawSize);
231 fp->read( (char*)Raw, PixelDataLength);
234 if ( fp->fail() || fp->eof())
236 gdcmVerboseMacro( "Reading of Raw pixel data failed." );
240 else if ( IsRLELossless )
242 if ( ! RLEInfo->DecompressRLEFile( fp, Raw, XSize, YSize, ZSize, BitsAllocated ) )
244 gdcmVerboseMacro( "RLE decompressor failed." );
250 // Default case concerns JPEG family
251 if ( ! ReadAndDecompressJPEGFile( fp ) )
253 gdcmVerboseMacro( "JPEG decompressor failed." );
258 ////////////////////////////////////////////
259 //// Third stage: twigle the bytes and bits.
260 ConvertReorderEndianity();
261 ConvertReArrangeBits();
262 ConvertHandleColor();
267 void PixelReadConvert::Squeeze()
283 * \brief Build the RGB image from the Raw imagage and the LUTs.
285 bool PixelReadConvert::BuildRGBImage()
289 // The job is already done.
295 // The job can't be done
302 // The job can't be done
308 uint8_t *localRGB = RGB;
309 for (size_t i = 0; i < RawSize; ++i )
312 *localRGB++ = LutRGBA[j];
313 *localRGB++ = LutRGBA[j+1];
314 *localRGB++ = LutRGBA[j+2];
319 //-----------------------------------------------------------------------------
322 //-----------------------------------------------------------------------------
325 * \brief Read from file a 12 bits per pixel image and decompress it
326 * into a 16 bits per pixel image.
328 void PixelReadConvert::ReadAndDecompress12BitsTo16Bits( std::ifstream *fp )
329 throw ( FormatError )
331 int nbPixels = XSize * YSize;
332 uint16_t *localDecompres = (uint16_t*)Raw;
334 for( int p = 0; p < nbPixels; p += 2 )
338 fp->read( (char*)&b0, 1);
339 if ( fp->fail() || fp->eof() )
341 throw FormatError( "PixelReadConvert::ReadAndDecompress12BitsTo16Bits()",
342 "Unfound first block" );
345 fp->read( (char*)&b1, 1 );
346 if ( fp->fail() || fp->eof())
348 throw FormatError( "PixelReadConvert::ReadAndDecompress12BitsTo16Bits()",
349 "Unfound second block" );
352 fp->read( (char*)&b2, 1 );
353 if ( fp->fail() || fp->eof())
355 throw FormatError( "PixelReadConvert::ReadAndDecompress12BitsTo16Bits()",
356 "Unfound second block" );
359 // Two steps are necessary to please VC++
361 // 2 pixels 12bit = [0xABCDEF]
362 // 2 pixels 16bit = [0x0ABD] + [0x0FCE]
364 *localDecompres++ = ((b0 >> 4) << 8) + ((b0 & 0x0f) << 4) + (b1 & 0x0f);
366 *localDecompres++ = ((b2 & 0x0f) << 8) + ((b1 >> 4) << 4) + (b2 >> 4);
368 /// \todo JPR Troubles expected on Big-Endian processors ?
373 * \brief Reads from disk the Pixel Data of JPEG Dicom encapsulated
374 * file and decompress it.
375 * @param fp File Pointer
378 bool PixelReadConvert::ReadAndDecompressJPEGFile( std::ifstream *fp )
382 gdcmVerboseMacro( "Sorry, JPEG2000 not yet taken into account" );
383 fp->seekg( JPEGInfo->GetFirstFragment()->GetOffset(), std::ios::beg);
384 // if ( ! gdcm_read_JPEG2000_file( fp,Raw ) )
390 gdcmVerboseMacro( "Sorry, JPEG-LS not yet taken into account" );
391 fp->seekg( JPEGInfo->GetFirstFragment()->GetOffset(), std::ios::beg);
392 // if ( ! gdcm_read_JPEGLS_file( fp,Raw ) )
397 // Precompute the offset localRaw will be shifted with
398 int length = XSize * YSize * SamplesPerPixel;
399 int numberBytes = BitsAllocated / 8;
401 JPEGInfo->DecompressFromFile(fp, Raw, BitsStored, numberBytes, length );
406 * \brief Build Red/Green/Blue/Alpha LUT from File
407 * when (0028,0004),Photometric Interpretation = [PALETTE COLOR ]
408 * and (0028,1101),(0028,1102),(0028,1102)
409 * - xxx Palette Color Lookup Table Descriptor - are found
410 * and (0028,1201),(0028,1202),(0028,1202)
411 * - xxx Palette Color Lookup Table Data - are found
412 * \warning does NOT deal with :
413 * 0028 1100 Gray Lookup Table Descriptor (Retired)
414 * 0028 1221 Segmented Red Palette Color Lookup Table Data
415 * 0028 1222 Segmented Green Palette Color Lookup Table Data
416 * 0028 1223 Segmented Blue Palette Color Lookup Table Data
417 * no known Dicom reader deals with them :-(
418 * @return a RGBA Lookup Table
420 void PixelReadConvert::BuildLUTRGBA()
427 // http://www.barre.nom.fr/medical/dicom2/limitations.html#Color%20Lookup%20Tables
429 if ( ! IsPaletteColor )
434 if ( LutRedDescriptor == GDCM_UNFOUND
435 || LutGreenDescriptor == GDCM_UNFOUND
436 || LutBlueDescriptor == GDCM_UNFOUND )
441 ////////////////////////////////////////////
442 // Extract the info from the LUT descriptors
443 int lengthR; // Red LUT length in Bytes
444 int debR; // Subscript of the first Lut Value
445 int nbitsR; // Lut item size (in Bits)
446 int nbRead = sscanf( LutRedDescriptor.c_str(),
448 &lengthR, &debR, &nbitsR );
451 gdcmVerboseMacro( "Wrong Red LUT descriptor" );
454 int lengthG; // Green LUT length in Bytes
455 int debG; // Subscript of the first Lut Value
456 int nbitsG; // Lut item size (in Bits)
457 nbRead = sscanf( LutGreenDescriptor.c_str(),
459 &lengthG, &debG, &nbitsG );
462 gdcmVerboseMacro( "Wrong Green LUT descriptor" );
465 int lengthB; // Blue LUT length in Bytes
466 int debB; // Subscript of the first Lut Value
467 int nbitsB; // Lut item size (in Bits)
468 nbRead = sscanf( LutRedDescriptor.c_str(),
470 &lengthB, &debB, &nbitsB );
473 gdcmVerboseMacro( "Wrong Blue LUT descriptor" );
476 ////////////////////////////////////////////////////////
477 if ( ( ! LutRedData ) || ( ! LutGreenData ) || ( ! LutBlueData ) )
482 ////////////////////////////////////////////////
483 // forge the 4 * 8 Bits Red/Green/Blue/Alpha LUT
484 LutRGBA = new uint8_t[ 1024 ]; // 256 * 4 (R, G, B, Alpha)
488 memset( LutRGBA, 0, 1024 );
491 if ( ( nbitsR == 16 ) && ( BitsAllocated == 8 ) )
493 // when LUT item size is different than pixel size
494 mult = 2; // high byte must be = low byte
498 // See PS 3.3-2003 C.11.1.1.2 p 619
502 // if we get a black image, let's just remove the '+1'
503 // from 'i*mult+1' and check again
504 // if it works, we shall have to check the 3 Palettes
505 // to see which byte is ==0 (first one, or second one)
507 // We give up the checking to avoid some (useless ?) overhead
508 // (optimistic asumption)
510 uint8_t *a = LutRGBA + 0;
511 for( i=0; i < lengthR; ++i )
513 *a = LutRedData[i*mult+1];
518 for( i=0; i < lengthG; ++i)
520 *a = LutGreenData[i*mult+1];
525 for(i=0; i < lengthB; ++i)
527 *a = LutBlueData[i*mult+1];
532 for(i=0; i < 256; ++i)
534 *a = 1; // Alpha component
540 * \brief Swap the bytes, according to \ref SwapCode.
542 void PixelReadConvert::ConvertSwapZone()
546 if( BitsAllocated == 16 )
548 uint16_t *im16 = (uint16_t*)Raw;
556 for( i = 0; i < RawSize / 2; i++ )
558 im16[i]= (im16[i] >> 8) | (im16[i] << 8 );
562 gdcmVerboseMacro("SwapCode value (16 bits) not allowed.");
565 else if( BitsAllocated == 32 )
570 uint32_t *im32 = (uint32_t*)Raw;
576 for( i = 0; i < RawSize / 4; i++ )
578 low = im32[i] & 0x0000ffff; // 4321
579 high = im32[i] >> 16;
580 high = ( high >> 8 ) | ( high << 8 );
581 low = ( low >> 8 ) | ( low << 8 );
583 im32[i] = ( s32 << 16 ) | high;
587 for( i = 0; i < RawSize / 4; i++ )
589 low = im32[i] & 0x0000ffff; // 2143
590 high = im32[i] >> 16;
591 high = ( high >> 8 ) | ( high << 8 );
592 low = ( low >> 8 ) | ( low << 8 );
594 im32[i] = ( s32 << 16 ) | low;
598 for( i = 0; i < RawSize / 4; i++ )
600 low = im32[i] & 0x0000ffff; // 3412
601 high = im32[i] >> 16;
603 im32[i] = ( s32 << 16 ) | high;
607 gdcmVerboseMacro("SwapCode value (32 bits) not allowed." );
613 * \brief Deal with endianness i.e. re-arange bytes inside the integer
615 void PixelReadConvert::ConvertReorderEndianity()
617 if ( BitsAllocated != 8 )
622 // Special kludge in order to deal with xmedcon broken images:
623 if ( BitsAllocated == 16
624 && BitsStored < BitsAllocated
627 int l = (int)( RawSize / ( BitsAllocated / 8 ) );
628 uint16_t *deb = (uint16_t *)Raw;
629 for(int i = 0; i<l; i++)
641 * \brief Re-arrange the bits within the bytes.
644 bool PixelReadConvert::ConvertReArrangeBits() throw ( FormatError )
646 if ( BitsStored != BitsAllocated )
648 int l = (int)( RawSize / ( BitsAllocated / 8 ) );
649 if ( BitsAllocated == 16 )
651 uint16_t mask = 0xffff;
652 mask = mask >> ( BitsAllocated - BitsStored );
653 uint16_t *deb = (uint16_t*)Raw;
654 for(int i = 0; i<l; i++)
656 *deb = (*deb >> (BitsStored - HighBitPosition - 1)) & mask;
660 else if ( BitsAllocated == 32 )
662 uint32_t mask = 0xffffffff;
663 mask = mask >> ( BitsAllocated - BitsStored );
664 uint32_t *deb = (uint32_t*)Raw;
665 for(int i = 0; i<l; i++)
667 *deb = (*deb >> (BitsStored - HighBitPosition - 1)) & mask;
673 gdcmVerboseMacro("Weird image");
674 throw FormatError( "Weird image !?" );
681 * \brief Convert (Red plane, Green plane, Blue plane) to RGB pixels
682 * \warning Works on all the frames at a time
684 void PixelReadConvert::ConvertRGBPlanesToRGBPixels()
686 uint8_t *localRaw = Raw;
687 uint8_t *copyRaw = new uint8_t[ RawSize ];
688 memmove( copyRaw, localRaw, RawSize );
690 int l = XSize * YSize * ZSize;
692 uint8_t *a = copyRaw;
693 uint8_t *b = copyRaw + l;
694 uint8_t *c = copyRaw + l + l;
696 for (int j = 0; j < l; j++)
698 *(localRaw++) = *(a++);
699 *(localRaw++) = *(b++);
700 *(localRaw++) = *(c++);
706 * \brief Convert (cY plane, cB plane, cR plane) to RGB pixels
707 * \warning Works on all the frames at a time
709 void PixelReadConvert::ConvertYcBcRPlanesToRGBPixels()
711 uint8_t *localRaw = Raw;
712 uint8_t *copyRaw = new uint8_t[ RawSize ];
713 memmove( copyRaw, localRaw, RawSize );
715 // to see the tricks about YBR_FULL, YBR_FULL_422,
716 // YBR_PARTIAL_422, YBR_ICT, YBR_RCT have a look at :
717 // ftp://medical.nema.org/medical/dicom/final/sup61_ft.pdf
718 // and be *very* affraid
720 int l = XSize * YSize;
721 int nbFrames = ZSize;
723 uint8_t *a = copyRaw;
724 uint8_t *b = copyRaw + l;
725 uint8_t *c = copyRaw + l + l;
728 /// \todo : Replace by the 'well known' integer computation
729 /// counterpart. Refer to
730 /// http://lestourtereaux.free.fr/papers/data/yuvrgb.pdf
731 /// for code optimisation.
733 for ( int i = 0; i < nbFrames; i++ )
735 for ( int j = 0; j < l; j++ )
737 R = 1.164 *(*a-16) + 1.596 *(*c -128) + 0.5;
738 G = 1.164 *(*a-16) - 0.813 *(*c -128) - 0.392 *(*b -128) + 0.5;
739 B = 1.164 *(*a-16) + 2.017 *(*b -128) + 0.5;
741 if (R < 0.0) R = 0.0;
742 if (G < 0.0) G = 0.0;
743 if (B < 0.0) B = 0.0;
744 if (R > 255.0) R = 255.0;
745 if (G > 255.0) G = 255.0;
746 if (B > 255.0) B = 255.0;
748 *(localRaw++) = (uint8_t)R;
749 *(localRaw++) = (uint8_t)G;
750 *(localRaw++) = (uint8_t)B;
759 void PixelReadConvert::ConvertHandleColor()
761 //////////////////////////////////
762 // Deal with the color decoding i.e. handle:
763 // - R, G, B planes (as opposed to RGB pixels)
764 // - YBR (various) encodings.
765 // - LUT[s] (or "PALETTE COLOR").
767 // The classification in the color decoding schema is based on the blending
768 // of two Dicom tags values:
769 // * "Photometric Interpretation" for which we have the cases:
770 // - [Photo A] MONOCHROME[1|2] pictures,
771 // - [Photo B] RGB or YBR_FULL_422 (which acts as RGB),
772 // - [Photo C] YBR_* (with the above exception of YBR_FULL_422)
773 // - [Photo D] "PALETTE COLOR" which indicates the presence of LUT[s].
774 // * "Planar Configuration" for which we have the cases:
775 // - [Planar 0] 0 then Pixels are already RGB
776 // - [Planar 1] 1 then we have 3 planes : R, G, B,
777 // - [Planar 2] 2 then we have 1 gray Plane and 3 LUTs
779 // Now in theory, one could expect some coherence when blending the above
780 // cases. For example we should not encounter files belonging at the
781 // time to case [Planar 0] and case [Photo D].
782 // Alas, this was only theory ! Because in practice some odd (read ill
783 // formated Dicom) files (e.g. gdcmData/US-PAL-8-10x-echo.dcm) we encounter:
784 // - "Planar Configuration" = 0,
785 // - "Photometric Interpretation" = "PALETTE COLOR".
786 // Hence gdcm will use the folowing "heuristic" in order to be tolerant
787 // towards Dicom-non-conformance files:
788 // << whatever the "Planar Configuration" value might be, a
789 // "Photometric Interpretation" set to "PALETTE COLOR" forces
790 // a LUT intervention >>
792 // Now we are left with the following handling of the cases:
793 // - [Planar 0] OR [Photo A] no color decoding (since respectively
794 // Pixels are already RGB and monochrome pictures have no color :),
795 // - [Planar 1] AND [Photo B] handled with ConvertRGBPlanesToRGBPixels()
796 // - [Planar 1] AND [Photo C] handled with ConvertYcBcRPlanesToRGBPixels()
797 // - [Planar 2] OR [Photo D] requires LUT intervention.
801 // [Planar 2] OR [Photo D]: LUT intervention done outside
805 if ( PlanarConfiguration == 1 )
809 // [Planar 1] AND [Photo C] (remember YBR_FULL_422 acts as RGB)
810 ConvertYcBcRPlanesToRGBPixels();
814 // [Planar 1] AND [Photo C]
815 ConvertRGBPlanesToRGBPixels();
820 // When planarConf is 0, and RLELossless (forbidden by Dicom norm)
821 // pixels need to be RGB-fied anyway
824 ConvertRGBPlanesToRGBPixels();
826 // In *normal *case, when planarConf is 0, pixels are already in RGB
829 void PixelReadConvert::ComputeRawAndRGBSizes()
831 int bitsAllocated = BitsAllocated;
832 // Number of "Bits Allocated" is fixed to 16 when it's 12, since
833 // in this case we will expand the image to 16 bits (see
834 // \ref ReadAndDecompress12BitsTo16Bits() )
835 if ( BitsAllocated == 12 )
840 RawSize = XSize * YSize * ZSize
841 * ( bitsAllocated / 8 )
845 RGBSize = 3 * RawSize;
853 void PixelReadConvert::AllocateRGB()
857 RGB = new uint8_t[RGBSize];
860 void PixelReadConvert::AllocateRaw()
864 Raw = new uint8_t[RawSize];
867 //-----------------------------------------------------------------------------
871 * @param indent Indentation string to be prepended during printing.
872 * @param os Stream to print to.
874 void PixelReadConvert::Print( std::ostream &os, std::string const &indent )
877 << "--- Pixel information -------------------------"
880 << "Pixel Data: offset " << PixelOffset
881 << " x(" << std::hex << PixelOffset << std::dec
882 << ") length " << PixelDataLength
883 << " x(" << std::hex << PixelDataLength << std::dec
890 RLEInfo->Print( os, indent );
894 gdcmVerboseMacro("Set as RLE file but NO RLEinfo present.");
898 if ( IsJPEG2000 || IsJPEGLossless || IsJPEGLossy || IsJPEGLS )
902 JPEGInfo->Print( os, indent );
906 gdcmVerboseMacro("Set as JPEG file but NO JPEGinfo present.");
911 //-----------------------------------------------------------------------------
912 } // end namespace gdcm
914 // NOTES on File internal calls
917 // ---> GetImageDataIntoVector
918 // |---> GetImageDataIntoVectorRaw
919 // | lut intervention
921 // ---> GetImageDataRaw
922 // ---> GetImageDataIntoVectorRaw