1 /*=========================================================================
4 Module: $RCSfile: gdcmPixelReadConvert.cxx,v $
6 Date: $Date: 2005/02/01 10:29:55 $
7 Version: $Revision: 1.43 $
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 //-----------------------------------------------------------------------------
57 void PixelReadConvert::Squeeze()
72 void PixelReadConvert::AllocateRGB()
76 RGB = new uint8_t[RGBSize];
79 void PixelReadConvert::AllocateRaw()
83 Raw = new uint8_t[RawSize];
87 * \brief Read from file a 12 bits per pixel image and decompress it
88 * into a 16 bits per pixel image.
90 void PixelReadConvert::ReadAndDecompress12BitsTo16Bits( std::ifstream *fp )
93 int nbPixels = XSize * YSize;
94 uint16_t* localDecompres = (uint16_t*)Raw;
96 for( int p = 0; p < nbPixels; p += 2 )
100 fp->read( (char*)&b0, 1);
101 if ( fp->fail() || fp->eof() )
103 throw FormatError( "PixelReadConvert::ReadAndDecompress12BitsTo16Bits()",
104 "Unfound first block" );
107 fp->read( (char*)&b1, 1 );
108 if ( fp->fail() || fp->eof())
110 throw FormatError( "PixelReadConvert::ReadAndDecompress12BitsTo16Bits()",
111 "Unfound second block" );
114 fp->read( (char*)&b2, 1 );
115 if ( fp->fail() || fp->eof())
117 throw FormatError( "PixelReadConvert::ReadAndDecompress12BitsTo16Bits()",
118 "Unfound second block" );
121 // Two steps are necessary to please VC++
123 // 2 pixels 12bit = [0xABCDEF]
124 // 2 pixels 16bit = [0x0ABD] + [0x0FCE]
126 *localDecompres++ = ((b0 >> 4) << 8) + ((b0 & 0x0f) << 4) + (b1 & 0x0f);
128 *localDecompres++ = ((b2 & 0x0f) << 8) + ((b1 >> 4) << 4) + (b2 >> 4);
130 /// \todo JPR Troubles expected on Big-Endian processors ?
136 * \brief Swap the bytes, according to \ref SwapCode.
138 void PixelReadConvert::ConvertSwapZone()
142 if( BitsAllocated == 16 )
144 uint16_t *im16 = (uint16_t*)Raw;
152 for( i = 0; i < RawSize / 2; i++ )
154 im16[i]= (im16[i] >> 8) | (im16[i] << 8 );
158 gdcmVerboseMacro("SwapCode value (16 bits) not allowed.");
161 else if( BitsAllocated == 32 )
166 uint32_t* im32 = (uint32_t*)Raw;
172 for( i = 0; i < RawSize / 4; i++ )
174 low = im32[i] & 0x0000ffff; // 4321
175 high = im32[i] >> 16;
176 high = ( high >> 8 ) | ( high << 8 );
177 low = ( low >> 8 ) | ( low << 8 );
179 im32[i] = ( s32 << 16 ) | high;
183 for( i = 0; i < RawSize / 4; i++ )
185 low = im32[i] & 0x0000ffff; // 2143
186 high = im32[i] >> 16;
187 high = ( high >> 8 ) | ( high << 8 );
188 low = ( low >> 8 ) | ( low << 8 );
190 im32[i] = ( s32 << 16 ) | low;
194 for( i = 0; i < RawSize / 4; i++ )
196 low = im32[i] & 0x0000ffff; // 3412
197 high = im32[i] >> 16;
199 im32[i] = ( s32 << 16 ) | high;
203 gdcmVerboseMacro("SwapCode value (32 bits) not allowed." );
209 * \brief Deal with endianness i.e. re-arange bytes inside the integer
211 void PixelReadConvert::ConvertReorderEndianity()
213 if ( BitsAllocated != 8 )
218 // Special kludge in order to deal with xmedcon broken images:
219 if ( BitsAllocated == 16
220 && BitsStored < BitsAllocated
223 int l = (int)( RawSize / ( BitsAllocated / 8 ) );
224 uint16_t *deb = (uint16_t *)Raw;
225 for(int i = 0; i<l; i++)
237 * \brief Reads from disk the Pixel Data of JPEG Dicom encapsulated
238 * file and decompress it.
239 * @param fp File Pointer
242 bool PixelReadConvert::ReadAndDecompressJPEGFile( std::ifstream *fp )
246 gdcmVerboseMacro( "Sorry, JPEG2000 not yet taken into account" );
247 fp->seekg( JPEGInfo->GetFirstFragment()->GetOffset(), std::ios::beg);
248 // if ( ! gdcm_read_JPEG2000_file( fp,Raw ) )
254 gdcmVerboseMacro( "Sorry, JPEG-LS not yet taken into account" );
255 fp->seekg( JPEGInfo->GetFirstFragment()->GetOffset(), std::ios::beg);
256 // if ( ! gdcm_read_JPEGLS_file( fp,Raw ) )
261 // Precompute the offset localRaw will be shifted with
262 int length = XSize * YSize * SamplesPerPixel;
263 int numberBytes = BitsAllocated / 8;
265 JPEGInfo->DecompressFromFile(fp, Raw, BitsStored, numberBytes, length );
270 * \brief Re-arrange the bits within the bytes.
273 bool PixelReadConvert::ConvertReArrangeBits() throw ( FormatError )
275 if ( BitsStored != BitsAllocated )
277 int l = (int)( RawSize / ( BitsAllocated / 8 ) );
278 if ( BitsAllocated == 16 )
280 uint16_t mask = 0xffff;
281 mask = mask >> ( BitsAllocated - BitsStored );
282 uint16_t* deb = (uint16_t*)Raw;
283 for(int i = 0; i<l; i++)
285 *deb = (*deb >> (BitsStored - HighBitPosition - 1)) & mask;
289 else if ( BitsAllocated == 32 )
291 uint32_t mask = 0xffffffff;
292 mask = mask >> ( BitsAllocated - BitsStored );
293 uint32_t* deb = (uint32_t*)Raw;
294 for(int i = 0; i<l; i++)
296 *deb = (*deb >> (BitsStored - HighBitPosition - 1)) & mask;
302 gdcmVerboseMacro("Weird image");
303 throw FormatError( "Weird image !?" );
310 * \brief Convert (cY plane, cB plane, cR plane) to RGB pixels
311 * \warning Works on all the frames at a time
313 void PixelReadConvert::ConvertYcBcRPlanesToRGBPixels()
315 uint8_t *localRaw = Raw;
316 uint8_t *copyRaw = new uint8_t[ RawSize ];
317 memmove( copyRaw, localRaw, RawSize );
319 // to see the tricks about YBR_FULL, YBR_FULL_422,
320 // YBR_PARTIAL_422, YBR_ICT, YBR_RCT have a look at :
321 // ftp://medical.nema.org/medical/dicom/final/sup61_ft.pdf
322 // and be *very* affraid
324 int l = XSize * YSize;
325 int nbFrames = ZSize;
327 uint8_t *a = copyRaw;
328 uint8_t *b = copyRaw + l;
329 uint8_t *c = copyRaw + l + l;
332 /// \todo : Replace by the 'well known' integer computation
333 /// counterpart. Refer to
334 /// http://lestourtereaux.free.fr/papers/data/yuvrgb.pdf
335 /// for code optimisation.
337 for ( int i = 0; i < nbFrames; i++ )
339 for ( int j = 0; j < l; j++ )
341 R = 1.164 *(*a-16) + 1.596 *(*c -128) + 0.5;
342 G = 1.164 *(*a-16) - 0.813 *(*c -128) - 0.392 *(*b -128) + 0.5;
343 B = 1.164 *(*a-16) + 2.017 *(*b -128) + 0.5;
345 if (R < 0.0) R = 0.0;
346 if (G < 0.0) G = 0.0;
347 if (B < 0.0) B = 0.0;
348 if (R > 255.0) R = 255.0;
349 if (G > 255.0) G = 255.0;
350 if (B > 255.0) B = 255.0;
352 *(localRaw++) = (uint8_t)R;
353 *(localRaw++) = (uint8_t)G;
354 *(localRaw++) = (uint8_t)B;
364 * \brief Convert (Red plane, Green plane, Blue plane) to RGB pixels
365 * \warning Works on all the frames at a time
367 void PixelReadConvert::ConvertRGBPlanesToRGBPixels()
369 uint8_t *localRaw = Raw;
370 uint8_t *copyRaw = new uint8_t[ RawSize ];
371 memmove( copyRaw, localRaw, RawSize );
373 int l = XSize * YSize * ZSize;
375 uint8_t* a = copyRaw;
376 uint8_t* b = copyRaw + l;
377 uint8_t* c = copyRaw + l + l;
379 for (int j = 0; j < l; j++)
381 *(localRaw++) = *(a++);
382 *(localRaw++) = *(b++);
383 *(localRaw++) = *(c++);
388 bool PixelReadConvert::ReadAndDecompressPixelData( std::ifstream *fp )
390 // ComputeRawAndRGBSizes is already made by
391 // ::GrabInformationsFromfile. So, the structure sizes are
395 //////////////////////////////////////////////////
396 //// First stage: get our hands on the Pixel Data.
399 gdcmVerboseMacro( "Unavailable file pointer." );
403 fp->seekg( PixelOffset, std::ios::beg );
404 if( fp->fail() || fp->eof())
406 gdcmVerboseMacro( "Unable to find PixelOffset in file." );
412 //////////////////////////////////////////////////
413 //// Second stage: read from disk dans decompress.
414 if ( BitsAllocated == 12 )
416 ReadAndDecompress12BitsTo16Bits( fp);
420 // This problem can be found when some obvious informations are found
421 // after the field containing the image data. In this case, these
422 // bad data are added to the size of the image (in the PixelDataLength
423 // variable). But RawSize is the right size of the image !
424 if( PixelDataLength != RawSize)
426 gdcmVerboseMacro( "Mismatch between PixelReadConvert and RawSize." );
428 if( PixelDataLength > RawSize)
430 fp->read( (char*)Raw, RawSize);
434 fp->read( (char*)Raw, PixelDataLength);
437 if ( fp->fail() || fp->eof())
439 gdcmVerboseMacro( "Reading of Raw pixel data failed." );
443 else if ( IsRLELossless )
445 if ( ! RLEInfo->DecompressRLEFile( fp, Raw, XSize, YSize, ZSize, BitsAllocated ) )
447 gdcmVerboseMacro( "RLE decompressor failed." );
453 // Default case concerns JPEG family
454 if ( ! ReadAndDecompressJPEGFile( fp ) )
456 gdcmVerboseMacro( "JPEG decompressor failed." );
461 ////////////////////////////////////////////
462 //// Third stage: twigle the bytes and bits.
463 ConvertReorderEndianity();
464 ConvertReArrangeBits();
465 ConvertHandleColor();
470 void PixelReadConvert::ConvertHandleColor()
472 //////////////////////////////////
473 // Deal with the color decoding i.e. handle:
474 // - R, G, B planes (as opposed to RGB pixels)
475 // - YBR (various) encodings.
476 // - LUT[s] (or "PALETTE COLOR").
478 // The classification in the color decoding schema is based on the blending
479 // of two Dicom tags values:
480 // * "Photometric Interpretation" for which we have the cases:
481 // - [Photo A] MONOCHROME[1|2] pictures,
482 // - [Photo B] RGB or YBR_FULL_422 (which acts as RGB),
483 // - [Photo C] YBR_* (with the above exception of YBR_FULL_422)
484 // - [Photo D] "PALETTE COLOR" which indicates the presence of LUT[s].
485 // * "Planar Configuration" for which we have the cases:
486 // - [Planar 0] 0 then Pixels are already RGB
487 // - [Planar 1] 1 then we have 3 planes : R, G, B,
488 // - [Planar 2] 2 then we have 1 gray Plane and 3 LUTs
490 // Now in theory, one could expect some coherence when blending the above
491 // cases. For example we should not encounter files belonging at the
492 // time to case [Planar 0] and case [Photo D].
493 // Alas, this was only theory ! Because in practice some odd (read ill
494 // formated Dicom) files (e.g. gdcmData/US-PAL-8-10x-echo.dcm) we encounter:
495 // - "Planar Configuration" = 0,
496 // - "Photometric Interpretation" = "PALETTE COLOR".
497 // Hence gdcm will use the folowing "heuristic" in order to be tolerant
498 // towards Dicom-non-conformance files:
499 // << whatever the "Planar Configuration" value might be, a
500 // "Photometric Interpretation" set to "PALETTE COLOR" forces
501 // a LUT intervention >>
503 // Now we are left with the following handling of the cases:
504 // - [Planar 0] OR [Photo A] no color decoding (since respectively
505 // Pixels are already RGB and monochrome pictures have no color :),
506 // - [Planar 1] AND [Photo B] handled with ConvertRGBPlanesToRGBPixels()
507 // - [Planar 1] AND [Photo C] handled with ConvertYcBcRPlanesToRGBPixels()
508 // - [Planar 2] OR [Photo D] requires LUT intervention.
512 // [Planar 2] OR [Photo D]: LUT intervention done outside
516 if ( PlanarConfiguration == 1 )
520 // [Planar 1] AND [Photo C] (remember YBR_FULL_422 acts as RGB)
521 ConvertYcBcRPlanesToRGBPixels();
525 // [Planar 1] AND [Photo C]
526 ConvertRGBPlanesToRGBPixels();
531 // When planarConf is 0, and RLELossless (forbidden by Dicom norm)
532 // pixels need to be RGB-fied anyway
535 ConvertRGBPlanesToRGBPixels();
537 // In *normal *case, when planarConf is 0, pixels are already in RGB
541 * \brief Predicate to know wether the image[s] (once Raw) is RGB.
542 * \note See comments of \ref ConvertHandleColor
544 bool PixelReadConvert::IsRawRGB()
547 || PlanarConfiguration == 2
555 void PixelReadConvert::ComputeRawAndRGBSizes()
557 int bitsAllocated = BitsAllocated;
558 // Number of "Bits Allocated" is fixed to 16 when it's 12, since
559 // in this case we will expand the image to 16 bits (see
560 // \ref ReadAndDecompress12BitsTo16Bits() )
561 if ( BitsAllocated == 12 )
566 RawSize = XSize * YSize * ZSize
567 * ( bitsAllocated / 8 )
571 RGBSize = 3 * RawSize;
579 void PixelReadConvert::GrabInformationsFromFile( File *file )
581 // Number of Bits Allocated for storing a Pixel is defaulted to 16
582 // when absent from the file.
583 BitsAllocated = file->GetBitsAllocated();
584 if ( BitsAllocated == 0 )
589 // Number of "Bits Stored", defaulted to number of "Bits Allocated"
590 // when absent from the file.
591 BitsStored = file->GetBitsStored();
592 if ( BitsStored == 0 )
594 BitsStored = BitsAllocated;
597 // High Bit Position, defaulted to "Bits Allocated" - 1
598 HighBitPosition = file->GetHighBitPosition();
599 if ( HighBitPosition == 0 )
601 HighBitPosition = BitsAllocated - 1;
604 XSize = file->GetXSize();
605 YSize = file->GetYSize();
606 ZSize = file->GetZSize();
607 SamplesPerPixel = file->GetSamplesPerPixel();
608 PixelSize = file->GetPixelSize();
609 PixelSign = file->IsSignedPixelData();
610 SwapCode = file->GetSwapCode();
611 std::string ts = file->GetTransferSyntax();
613 ( ! file->IsDicomV3() )
614 || Global::GetTS()->GetSpecialTransferSyntax(ts) == TS::ImplicitVRLittleEndian
615 || Global::GetTS()->GetSpecialTransferSyntax(ts) == TS::ImplicitVRLittleEndianDLXGE
616 || Global::GetTS()->GetSpecialTransferSyntax(ts) == TS::ExplicitVRLittleEndian
617 || Global::GetTS()->GetSpecialTransferSyntax(ts) == TS::ExplicitVRBigEndian
618 || Global::GetTS()->GetSpecialTransferSyntax(ts) == TS::DeflatedExplicitVRLittleEndian;
620 IsJPEG2000 = Global::GetTS()->IsJPEG2000(ts);
621 IsJPEGLS = Global::GetTS()->IsJPEGLS(ts);
622 IsJPEGLossy = Global::GetTS()->IsJPEGLossy(ts);
623 IsJPEGLossless = Global::GetTS()->IsJPEGLossless(ts);
624 IsRLELossless = Global::GetTS()->IsRLELossless(ts);
626 PixelOffset = file->GetPixelOffset();
627 PixelDataLength = file->GetPixelAreaLength();
628 RLEInfo = file->GetRLEInfo();
629 JPEGInfo = file->GetJPEGInfo();
631 PlanarConfiguration = file->GetPlanarConfiguration();
632 IsMonochrome = file->IsMonochrome();
633 IsPaletteColor = file->IsPaletteColor();
634 IsYBRFull = file->IsYBRFull();
636 /////////////////////////////////////////////////////////////////
638 HasLUT = file->HasLUT();
641 // Just in case some access to a File element requires disk access.
642 LutRedDescriptor = file->GetEntryValue( 0x0028, 0x1101 );
643 LutGreenDescriptor = file->GetEntryValue( 0x0028, 0x1102 );
644 LutBlueDescriptor = file->GetEntryValue( 0x0028, 0x1103 );
646 // Depending on the value of Document::MAX_SIZE_LOAD_ELEMENT_VALUE
647 // [ refer to invocation of Document::SetMaxSizeLoadEntry() in
648 // Document::Document() ], the loading of the value (content) of a
649 // [Bin|Val]Entry occurence migth have been hindered (read simply NOT
650 // loaded). Hence, we first try to obtain the LUTs data from the file
651 // and when this fails we read the LUTs data directly from disk.
652 /// \TODO Reading a [Bin|Val]Entry directly from disk is a kludge.
653 /// We should NOT bypass the [Bin|Val]Entry class. Instead
654 /// an access to an UNLOADED content of a [Bin|Val]Entry occurence
655 /// (e.g. BinEntry::GetBinArea()) should force disk access from
656 /// within the [Bin|Val]Entry class itself. The only problem
657 /// is that the [Bin|Val]Entry is unaware of the FILE* is was
658 /// parsed from. Fix that. FIXME.
661 file->LoadEntryBinArea(0x0028, 0x1201);
662 LutRedData = (uint8_t*)file->GetEntryBinArea( 0x0028, 0x1201 );
665 gdcmVerboseMacro( "Unable to read Red LUT data" );
669 file->LoadEntryBinArea(0x0028, 0x1202);
670 LutGreenData = (uint8_t*)file->GetEntryBinArea(0x0028, 0x1202 );
673 gdcmVerboseMacro( "Unable to read Green LUT data" );
677 file->LoadEntryBinArea(0x0028, 0x1203);
678 LutBlueData = (uint8_t*)file->GetEntryBinArea( 0x0028, 0x1203 );
681 gdcmVerboseMacro( "Unable to read Blue LUT data" );
685 ComputeRawAndRGBSizes();
689 * \brief Build Red/Green/Blue/Alpha LUT from File
690 * when (0028,0004),Photometric Interpretation = [PALETTE COLOR ]
691 * and (0028,1101),(0028,1102),(0028,1102)
692 * - xxx Palette Color Lookup Table Descriptor - are found
693 * and (0028,1201),(0028,1202),(0028,1202)
694 * - xxx Palette Color Lookup Table Data - are found
695 * \warning does NOT deal with :
696 * 0028 1100 Gray Lookup Table Descriptor (Retired)
697 * 0028 1221 Segmented Red Palette Color Lookup Table Data
698 * 0028 1222 Segmented Green Palette Color Lookup Table Data
699 * 0028 1223 Segmented Blue Palette Color Lookup Table Data
700 * no known Dicom reader deals with them :-(
701 * @return a RGBA Lookup Table
703 void PixelReadConvert::BuildLUTRGBA()
710 // http://www.barre.nom.fr/medical/dicom2/limitations.html#Color%20Lookup%20Tables
712 if ( ! IsPaletteColor )
717 if ( LutRedDescriptor == GDCM_UNFOUND
718 || LutGreenDescriptor == GDCM_UNFOUND
719 || LutBlueDescriptor == GDCM_UNFOUND )
724 ////////////////////////////////////////////
725 // Extract the info from the LUT descriptors
726 int lengthR; // Red LUT length in Bytes
727 int debR; // Subscript of the first Lut Value
728 int nbitsR; // Lut item size (in Bits)
729 int nbRead = sscanf( LutRedDescriptor.c_str(),
731 &lengthR, &debR, &nbitsR );
734 gdcmVerboseMacro( "Wrong Red LUT descriptor" );
737 int lengthG; // Green LUT length in Bytes
738 int debG; // Subscript of the first Lut Value
739 int nbitsG; // Lut item size (in Bits)
740 nbRead = sscanf( LutGreenDescriptor.c_str(),
742 &lengthG, &debG, &nbitsG );
745 gdcmVerboseMacro( "Wrong Green LUT descriptor" );
748 int lengthB; // Blue LUT length in Bytes
749 int debB; // Subscript of the first Lut Value
750 int nbitsB; // Lut item size (in Bits)
751 nbRead = sscanf( LutRedDescriptor.c_str(),
753 &lengthB, &debB, &nbitsB );
756 gdcmVerboseMacro( "Wrong Blue LUT descriptor" );
759 ////////////////////////////////////////////////////////
760 if ( ( ! LutRedData ) || ( ! LutGreenData ) || ( ! LutBlueData ) )
765 ////////////////////////////////////////////////
766 // forge the 4 * 8 Bits Red/Green/Blue/Alpha LUT
767 LutRGBA = new uint8_t[ 1024 ]; // 256 * 4 (R, G, B, Alpha)
771 memset( LutRGBA, 0, 1024 );
774 if ( ( nbitsR == 16 ) && ( BitsAllocated == 8 ) )
776 // when LUT item size is different than pixel size
777 mult = 2; // high byte must be = low byte
781 // See PS 3.3-2003 C.11.1.1.2 p 619
785 // if we get a black image, let's just remove the '+1'
786 // from 'i*mult+1' and check again
787 // if it works, we shall have to check the 3 Palettes
788 // to see which byte is ==0 (first one, or second one)
790 // We give up the checking to avoid some (useless ?) overhead
791 // (optimistic asumption)
793 uint8_t* a = LutRGBA + 0;
794 for( i=0; i < lengthR; ++i )
796 *a = LutRedData[i*mult+1];
801 for( i=0; i < lengthG; ++i)
803 *a = LutGreenData[i*mult+1];
808 for(i=0; i < lengthB; ++i)
810 *a = LutBlueData[i*mult+1];
815 for(i=0; i < 256; ++i)
817 *a = 1; // Alpha component
823 * \brief Build the RGB image from the Raw imagage and the LUTs.
825 bool PixelReadConvert::BuildRGBImage()
829 // The job is already done.
835 // The job can't be done
842 // The job can't be done
848 uint8_t* localRGB = RGB;
849 for (size_t i = 0; i < RawSize; ++i )
852 *localRGB++ = LutRGBA[j];
853 *localRGB++ = LutRGBA[j+1];
854 *localRGB++ = LutRGBA[j+2];
859 //-----------------------------------------------------------------------------
862 //-----------------------------------------------------------------------------
865 //-----------------------------------------------------------------------------
869 * @param indent Indentation string to be prepended during printing.
870 * @param os Stream to print to.
872 void PixelReadConvert::Print( std::ostream &os, std::string const & indent )
875 << "--- Pixel information -------------------------"
878 << "Pixel Data: offset " << PixelOffset
879 << " x(" << std::hex << PixelOffset << std::dec
880 << ") length " << PixelDataLength
881 << " x(" << std::hex << PixelDataLength << std::dec
888 RLEInfo->Print( os, indent );
892 gdcmVerboseMacro("Set as RLE file but NO RLEinfo present.");
896 if ( IsJPEG2000 || IsJPEGLossless || IsJPEGLossy || IsJPEGLS )
900 JPEGInfo->Print( os, indent );
904 gdcmVerboseMacro("Set as JPEG file but NO JPEGinfo present.");
909 //-----------------------------------------------------------------------------
910 } // end namespace gdcm
912 // NOTES on File internal calls
915 // ---> GetImageDataIntoVector
916 // |---> GetImageDataIntoVectorRaw
917 // | lut intervention
919 // ---> GetImageDataRaw
920 // ---> GetImageDataIntoVectorRaw