1 /*=========================================================================
4 Module: $RCSfile: gdcmPixelReadConvert.cxx,v $
6 Date: $Date: 2005/01/31 05:24:21 $
7 Version: $Revision: 1.41 $
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 #define str2num(str, typeNum) *((typeNum *)(str))
36 //-----------------------------------------------------------------------------
37 // Constructor / Destructor
38 PixelReadConvert::PixelReadConvert()
50 void PixelReadConvert::Squeeze()
65 PixelReadConvert::~PixelReadConvert()
70 void PixelReadConvert::AllocateRGB()
74 RGB = new uint8_t[RGBSize];
77 void PixelReadConvert::AllocateRaw()
81 Raw = new uint8_t[RawSize];
85 * \brief Read from file a 12 bits per pixel image and decompress it
86 * into a 16 bits per pixel image.
88 void PixelReadConvert::ReadAndDecompress12BitsTo16Bits( std::ifstream *fp )
91 int nbPixels = XSize * YSize;
92 uint16_t* localDecompres = (uint16_t*)Raw;
94 for( int p = 0; p < nbPixels; p += 2 )
98 fp->read( (char*)&b0, 1);
99 if ( fp->fail() || fp->eof() )
101 throw FormatError( "PixelReadConvert::ReadAndDecompress12BitsTo16Bits()",
102 "Unfound first block" );
105 fp->read( (char*)&b1, 1 );
106 if ( fp->fail() || fp->eof())
108 throw FormatError( "PixelReadConvert::ReadAndDecompress12BitsTo16Bits()",
109 "Unfound second block" );
112 fp->read( (char*)&b2, 1 );
113 if ( fp->fail() || fp->eof())
115 throw FormatError( "PixelReadConvert::ReadAndDecompress12BitsTo16Bits()",
116 "Unfound second block" );
119 // Two steps are necessary to please VC++
121 // 2 pixels 12bit = [0xABCDEF]
122 // 2 pixels 16bit = [0x0ABD] + [0x0FCE]
124 *localDecompres++ = ((b0 >> 4) << 8) + ((b0 & 0x0f) << 4) + (b1 & 0x0f);
126 *localDecompres++ = ((b2 & 0x0f) << 8) + ((b1 >> 4) << 4) + (b2 >> 4);
128 /// \todo JPR Troubles expected on Big-Endian processors ?
134 * \brief Swap the bytes, according to \ref SwapCode.
136 void PixelReadConvert::ConvertSwapZone()
140 if( BitsAllocated == 16 )
142 uint16_t *im16 = (uint16_t*)Raw;
150 for( i = 0; i < RawSize / 2; i++ )
152 im16[i]= (im16[i] >> 8) | (im16[i] << 8 );
156 gdcmVerboseMacro("SwapCode value (16 bits) not allowed.");
159 else if( BitsAllocated == 32 )
164 uint32_t* im32 = (uint32_t*)Raw;
170 for( i = 0; i < RawSize / 4; i++ )
172 low = im32[i] & 0x0000ffff; // 4321
173 high = im32[i] >> 16;
174 high = ( high >> 8 ) | ( high << 8 );
175 low = ( low >> 8 ) | ( low << 8 );
177 im32[i] = ( s32 << 16 ) | high;
181 for( i = 0; i < RawSize / 4; i++ )
183 low = im32[i] & 0x0000ffff; // 2143
184 high = im32[i] >> 16;
185 high = ( high >> 8 ) | ( high << 8 );
186 low = ( low >> 8 ) | ( low << 8 );
188 im32[i] = ( s32 << 16 ) | low;
192 for( i = 0; i < RawSize / 4; i++ )
194 low = im32[i] & 0x0000ffff; // 3412
195 high = im32[i] >> 16;
197 im32[i] = ( s32 << 16 ) | high;
201 gdcmVerboseMacro("SwapCode value (32 bits) not allowed." );
207 * \brief Deal with endianness i.e. re-arange bytes inside the integer
209 void PixelReadConvert::ConvertReorderEndianity()
211 if ( BitsAllocated != 8 )
216 // Special kludge in order to deal with xmedcon broken images:
217 if ( BitsAllocated == 16
218 && BitsStored < BitsAllocated
221 int l = (int)( RawSize / ( BitsAllocated / 8 ) );
222 uint16_t *deb = (uint16_t *)Raw;
223 for(int i = 0; i<l; i++)
235 * \brief Reads from disk the Pixel Data of JPEG Dicom encapsulated
236 * file and decompress it.
237 * @param fp File Pointer
240 bool PixelReadConvert::ReadAndDecompressJPEGFile( std::ifstream *fp )
244 gdcmVerboseMacro( "Sorry, JPEG2000 not yet taken into account" );
245 fp->seekg( JPEGInfo->GetFirstFragment()->GetOffset(), std::ios::beg);
246 // if ( ! gdcm_read_JPEG2000_file( fp,Raw ) )
252 gdcmVerboseMacro( "Sorry, JPEG-LS not yet taken into account" );
253 fp->seekg( JPEGInfo->GetFirstFragment()->GetOffset(), std::ios::beg);
254 // if ( ! gdcm_read_JPEGLS_file( fp,Raw ) )
259 // Precompute the offset localRaw will be shifted with
260 int length = XSize * YSize * SamplesPerPixel;
261 int numberBytes = BitsAllocated / 8;
263 JPEGInfo->DecompressFromFile(fp, Raw, BitsStored, numberBytes, length );
268 * \brief Re-arrange the bits within the bytes.
271 bool PixelReadConvert::ConvertReArrangeBits() throw ( FormatError )
273 if ( BitsStored != BitsAllocated )
275 int l = (int)( RawSize / ( BitsAllocated / 8 ) );
276 if ( BitsAllocated == 16 )
278 uint16_t mask = 0xffff;
279 mask = mask >> ( BitsAllocated - BitsStored );
280 uint16_t* deb = (uint16_t*)Raw;
281 for(int i = 0; i<l; i++)
283 *deb = (*deb >> (BitsStored - HighBitPosition - 1)) & mask;
287 else if ( BitsAllocated == 32 )
289 uint32_t mask = 0xffffffff;
290 mask = mask >> ( BitsAllocated - BitsStored );
291 uint32_t* deb = (uint32_t*)Raw;
292 for(int i = 0; i<l; i++)
294 *deb = (*deb >> (BitsStored - HighBitPosition - 1)) & mask;
300 gdcmVerboseMacro("Weird image");
301 throw FormatError( "Weird image !?" );
308 * \brief Convert (cY plane, cB plane, cR plane) to RGB pixels
309 * \warning Works on all the frames at a time
311 void PixelReadConvert::ConvertYcBcRPlanesToRGBPixels()
313 uint8_t *localRaw = Raw;
314 uint8_t *copyRaw = new uint8_t[ RawSize ];
315 memmove( copyRaw, localRaw, RawSize );
317 // to see the tricks about YBR_FULL, YBR_FULL_422,
318 // YBR_PARTIAL_422, YBR_ICT, YBR_RCT have a look at :
319 // ftp://medical.nema.org/medical/dicom/final/sup61_ft.pdf
320 // and be *very* affraid
322 int l = XSize * YSize;
323 int nbFrames = ZSize;
325 uint8_t *a = copyRaw;
326 uint8_t *b = copyRaw + l;
327 uint8_t *c = copyRaw + l + l;
330 /// \todo : Replace by the 'well known' integer computation
331 /// counterpart. Refer to
332 /// http://lestourtereaux.free.fr/papers/data/yuvrgb.pdf
333 /// for code optimisation.
335 for ( int i = 0; i < nbFrames; i++ )
337 for ( int j = 0; j < l; j++ )
339 R = 1.164 *(*a-16) + 1.596 *(*c -128) + 0.5;
340 G = 1.164 *(*a-16) - 0.813 *(*c -128) - 0.392 *(*b -128) + 0.5;
341 B = 1.164 *(*a-16) + 2.017 *(*b -128) + 0.5;
343 if (R < 0.0) R = 0.0;
344 if (G < 0.0) G = 0.0;
345 if (B < 0.0) B = 0.0;
346 if (R > 255.0) R = 255.0;
347 if (G > 255.0) G = 255.0;
348 if (B > 255.0) B = 255.0;
350 *(localRaw++) = (uint8_t)R;
351 *(localRaw++) = (uint8_t)G;
352 *(localRaw++) = (uint8_t)B;
362 * \brief Convert (Red plane, Green plane, Blue plane) to RGB pixels
363 * \warning Works on all the frames at a time
365 void PixelReadConvert::ConvertRGBPlanesToRGBPixels()
367 uint8_t *localRaw = Raw;
368 uint8_t *copyRaw = new uint8_t[ RawSize ];
369 memmove( copyRaw, localRaw, RawSize );
371 int l = XSize * YSize * ZSize;
373 uint8_t* a = copyRaw;
374 uint8_t* b = copyRaw + l;
375 uint8_t* c = copyRaw + l + l;
377 for (int j = 0; j < l; j++)
379 *(localRaw++) = *(a++);
380 *(localRaw++) = *(b++);
381 *(localRaw++) = *(c++);
386 bool PixelReadConvert::ReadAndDecompressPixelData( std::ifstream *fp )
388 // ComputeRawAndRGBSizes is already made by
389 // ::GrabInformationsFromfile. So, the structure sizes are
393 //////////////////////////////////////////////////
394 //// First stage: get our hands on the Pixel Data.
397 gdcmVerboseMacro( "Unavailable file pointer." );
401 fp->seekg( PixelOffset, std::ios::beg );
402 if( fp->fail() || fp->eof())
404 gdcmVerboseMacro( "Unable to find PixelOffset in file." );
410 //////////////////////////////////////////////////
411 //// Second stage: read from disk dans decompress.
412 if ( BitsAllocated == 12 )
414 ReadAndDecompress12BitsTo16Bits( fp);
418 // This problem can be found when some obvious informations are found
419 // after the field containing the image data. In this case, these
420 // bad data are added to the size of the image (in the PixelDataLength
421 // variable). But RawSize is the right size of the image !
422 if( PixelDataLength != RawSize)
424 gdcmVerboseMacro( "Mismatch between PixelReadConvert and RawSize." );
426 if( PixelDataLength > RawSize)
428 fp->read( (char*)Raw, RawSize);
432 fp->read( (char*)Raw, PixelDataLength);
435 if ( fp->fail() || fp->eof())
437 gdcmVerboseMacro( "Reading of Raw pixel data failed." );
441 else if ( IsRLELossless )
443 if ( ! RLEInfo->ReadAndDecompressRLEFile( fp, Raw, XSize, YSize, ZSize, BitsAllocated ) )
445 gdcmVerboseMacro( "RLE decompressor failed." );
451 // Default case concerns JPEG family
452 if ( ! ReadAndDecompressJPEGFile( fp ) )
454 gdcmVerboseMacro( "JPEG decompressor failed." );
459 ////////////////////////////////////////////
460 //// Third stage: twigle the bytes and bits.
461 ConvertReorderEndianity();
462 ConvertReArrangeBits();
463 ConvertHandleColor();
468 void PixelReadConvert::ConvertHandleColor()
470 //////////////////////////////////
471 // Deal with the color decoding i.e. handle:
472 // - R, G, B planes (as opposed to RGB pixels)
473 // - YBR (various) encodings.
474 // - LUT[s] (or "PALETTE COLOR").
476 // The classification in the color decoding schema is based on the blending
477 // of two Dicom tags values:
478 // * "Photometric Interpretation" for which we have the cases:
479 // - [Photo A] MONOCHROME[1|2] pictures,
480 // - [Photo B] RGB or YBR_FULL_422 (which acts as RGB),
481 // - [Photo C] YBR_* (with the above exception of YBR_FULL_422)
482 // - [Photo D] "PALETTE COLOR" which indicates the presence of LUT[s].
483 // * "Planar Configuration" for which we have the cases:
484 // - [Planar 0] 0 then Pixels are already RGB
485 // - [Planar 1] 1 then we have 3 planes : R, G, B,
486 // - [Planar 2] 2 then we have 1 gray Plane and 3 LUTs
488 // Now in theory, one could expect some coherence when blending the above
489 // cases. For example we should not encounter files belonging at the
490 // time to case [Planar 0] and case [Photo D].
491 // Alas, this was only theory ! Because in practice some odd (read ill
492 // formated Dicom) files (e.g. gdcmData/US-PAL-8-10x-echo.dcm) we encounter:
493 // - "Planar Configuration" = 0,
494 // - "Photometric Interpretation" = "PALETTE COLOR".
495 // Hence gdcm will use the folowing "heuristic" in order to be tolerant
496 // towards Dicom-non-conformance files:
497 // << whatever the "Planar Configuration" value might be, a
498 // "Photometric Interpretation" set to "PALETTE COLOR" forces
499 // a LUT intervention >>
501 // Now we are left with the following handling of the cases:
502 // - [Planar 0] OR [Photo A] no color decoding (since respectively
503 // Pixels are already RGB and monochrome pictures have no color :),
504 // - [Planar 1] AND [Photo B] handled with ConvertRGBPlanesToRGBPixels()
505 // - [Planar 1] AND [Photo C] handled with ConvertYcBcRPlanesToRGBPixels()
506 // - [Planar 2] OR [Photo D] requires LUT intervention.
510 // [Planar 2] OR [Photo D]: LUT intervention done outside
514 if ( PlanarConfiguration == 1 )
518 // [Planar 1] AND [Photo C] (remember YBR_FULL_422 acts as RGB)
519 ConvertYcBcRPlanesToRGBPixels();
523 // [Planar 1] AND [Photo C]
524 ConvertRGBPlanesToRGBPixels();
529 // When planarConf is 0, and RLELossless (forbidden by Dicom norm)
530 // pixels need to be RGB-fied anyway
533 ConvertRGBPlanesToRGBPixels();
535 // In *normal *case, when planarConf is 0, pixels are already in RGB
539 * \brief Predicate to know wether the image[s] (once Raw) is RGB.
540 * \note See comments of \ref ConvertHandleColor
542 bool PixelReadConvert::IsRawRGB()
545 || PlanarConfiguration == 2
553 void PixelReadConvert::ComputeRawAndRGBSizes()
555 int bitsAllocated = BitsAllocated;
556 // Number of "Bits Allocated" is fixed to 16 when it's 12, since
557 // in this case we will expand the image to 16 bits (see
558 // \ref ReadAndDecompress12BitsTo16Bits() )
559 if ( BitsAllocated == 12 )
564 RawSize = XSize * YSize * ZSize
565 * ( bitsAllocated / 8 )
569 RGBSize = 3 * RawSize;
577 void PixelReadConvert::GrabInformationsFromFile( File *file )
579 // Number of Bits Allocated for storing a Pixel is defaulted to 16
580 // when absent from the file.
581 BitsAllocated = file->GetBitsAllocated();
582 if ( BitsAllocated == 0 )
587 // Number of "Bits Stored", defaulted to number of "Bits Allocated"
588 // when absent from the file.
589 BitsStored = file->GetBitsStored();
590 if ( BitsStored == 0 )
592 BitsStored = BitsAllocated;
595 // High Bit Position, defaulted to "Bits Allocated" - 1
596 HighBitPosition = file->GetHighBitPosition();
597 if ( HighBitPosition == 0 )
599 HighBitPosition = BitsAllocated - 1;
602 XSize = file->GetXSize();
603 YSize = file->GetYSize();
604 ZSize = file->GetZSize();
605 SamplesPerPixel = file->GetSamplesPerPixel();
606 PixelSize = file->GetPixelSize();
607 PixelSign = file->IsSignedPixelData();
608 SwapCode = file->GetSwapCode();
609 std::string ts = file->GetTransferSyntax();
611 ( ! file->IsDicomV3() )
612 || Global::GetTS()->GetSpecialTransferSyntax(ts) == TS::ImplicitVRLittleEndian
613 || Global::GetTS()->GetSpecialTransferSyntax(ts) == TS::ImplicitVRLittleEndianDLXGE
614 || Global::GetTS()->GetSpecialTransferSyntax(ts) == TS::ExplicitVRLittleEndian
615 || Global::GetTS()->GetSpecialTransferSyntax(ts) == TS::ExplicitVRBigEndian
616 || Global::GetTS()->GetSpecialTransferSyntax(ts) == TS::DeflatedExplicitVRLittleEndian;
618 IsJPEG2000 = Global::GetTS()->IsJPEG2000(ts);
619 IsJPEGLS = Global::GetTS()->IsJPEGLS(ts);
620 IsJPEGLossy = Global::GetTS()->IsJPEGLossy(ts);
621 IsJPEGLossless = Global::GetTS()->IsJPEGLossless(ts);
622 IsRLELossless = Global::GetTS()->IsRLELossless(ts);
624 PixelOffset = file->GetPixelOffset();
625 PixelDataLength = file->GetPixelAreaLength();
626 RLEInfo = file->GetRLEInfo();
627 JPEGInfo = file->GetJPEGInfo();
629 PlanarConfiguration = file->GetPlanarConfiguration();
630 IsMonochrome = file->IsMonochrome();
631 IsPaletteColor = file->IsPaletteColor();
632 IsYBRFull = file->IsYBRFull();
634 /////////////////////////////////////////////////////////////////
636 HasLUT = file->HasLUT();
639 // Just in case some access to a File element requires disk access.
640 LutRedDescriptor = file->GetEntryValue( 0x0028, 0x1101 );
641 LutGreenDescriptor = file->GetEntryValue( 0x0028, 0x1102 );
642 LutBlueDescriptor = file->GetEntryValue( 0x0028, 0x1103 );
644 // Depending on the value of Document::MAX_SIZE_LOAD_ELEMENT_VALUE
645 // [ refer to invocation of Document::SetMaxSizeLoadEntry() in
646 // Document::Document() ], the loading of the value (content) of a
647 // [Bin|Val]Entry occurence migth have been hindered (read simply NOT
648 // loaded). Hence, we first try to obtain the LUTs data from the file
649 // and when this fails we read the LUTs data directly from disk.
650 /// \TODO Reading a [Bin|Val]Entry directly from disk is a kludge.
651 /// We should NOT bypass the [Bin|Val]Entry class. Instead
652 /// an access to an UNLOADED content of a [Bin|Val]Entry occurence
653 /// (e.g. BinEntry::GetBinArea()) should force disk access from
654 /// within the [Bin|Val]Entry class itself. The only problem
655 /// is that the [Bin|Val]Entry is unaware of the FILE* is was
656 /// parsed from. Fix that. FIXME.
659 file->LoadEntryBinArea(0x0028, 0x1201);
660 LutRedData = (uint8_t*)file->GetEntryBinArea( 0x0028, 0x1201 );
663 gdcmVerboseMacro( "Unable to read Red LUT data" );
667 file->LoadEntryBinArea(0x0028, 0x1202);
668 LutGreenData = (uint8_t*)file->GetEntryBinArea(0x0028, 0x1202 );
671 gdcmVerboseMacro( "Unable to read Green LUT data" );
675 file->LoadEntryBinArea(0x0028, 0x1203);
676 LutBlueData = (uint8_t*)file->GetEntryBinArea( 0x0028, 0x1203 );
679 gdcmVerboseMacro( "Unable to read Blue LUT data" );
683 ComputeRawAndRGBSizes();
687 * \brief Build Red/Green/Blue/Alpha LUT from File
688 * when (0028,0004),Photometric Interpretation = [PALETTE COLOR ]
689 * and (0028,1101),(0028,1102),(0028,1102)
690 * - xxx Palette Color Lookup Table Descriptor - are found
691 * and (0028,1201),(0028,1202),(0028,1202)
692 * - xxx Palette Color Lookup Table Data - are found
693 * \warning does NOT deal with :
694 * 0028 1100 Gray Lookup Table Descriptor (Retired)
695 * 0028 1221 Segmented Red Palette Color Lookup Table Data
696 * 0028 1222 Segmented Green Palette Color Lookup Table Data
697 * 0028 1223 Segmented Blue Palette Color Lookup Table Data
698 * no known Dicom reader deals with them :-(
699 * @return a RGBA Lookup Table
701 void PixelReadConvert::BuildLUTRGBA()
708 // http://www.barre.nom.fr/medical/dicom2/limitations.html#Color%20Lookup%20Tables
710 if ( ! IsPaletteColor )
715 if ( LutRedDescriptor == GDCM_UNFOUND
716 || LutGreenDescriptor == GDCM_UNFOUND
717 || LutBlueDescriptor == GDCM_UNFOUND )
722 ////////////////////////////////////////////
723 // Extract the info from the LUT descriptors
724 int lengthR; // Red LUT length in Bytes
725 int debR; // Subscript of the first Lut Value
726 int nbitsR; // Lut item size (in Bits)
727 int nbRead = sscanf( LutRedDescriptor.c_str(),
729 &lengthR, &debR, &nbitsR );
732 gdcmVerboseMacro( "Wrong Red LUT descriptor" );
735 int lengthG; // Green LUT length in Bytes
736 int debG; // Subscript of the first Lut Value
737 int nbitsG; // Lut item size (in Bits)
738 nbRead = sscanf( LutGreenDescriptor.c_str(),
740 &lengthG, &debG, &nbitsG );
743 gdcmVerboseMacro( "Wrong Green LUT descriptor" );
746 int lengthB; // Blue LUT length in Bytes
747 int debB; // Subscript of the first Lut Value
748 int nbitsB; // Lut item size (in Bits)
749 nbRead = sscanf( LutRedDescriptor.c_str(),
751 &lengthB, &debB, &nbitsB );
754 gdcmVerboseMacro( "Wrong Blue LUT descriptor" );
757 ////////////////////////////////////////////////////////
758 if ( ( ! LutRedData ) || ( ! LutGreenData ) || ( ! LutBlueData ) )
763 ////////////////////////////////////////////////
764 // forge the 4 * 8 Bits Red/Green/Blue/Alpha LUT
765 LutRGBA = new uint8_t[ 1024 ]; // 256 * 4 (R, G, B, Alpha)
769 memset( LutRGBA, 0, 1024 );
772 if ( ( nbitsR == 16 ) && ( BitsAllocated == 8 ) )
774 // when LUT item size is different than pixel size
775 mult = 2; // high byte must be = low byte
779 // See PS 3.3-2003 C.11.1.1.2 p 619
783 // if we get a black image, let's just remove the '+1'
784 // from 'i*mult+1' and check again
785 // if it works, we shall have to check the 3 Palettes
786 // to see which byte is ==0 (first one, or second one)
788 // We give up the checking to avoid some (useless ?) overhead
789 // (optimistic asumption)
791 uint8_t* a = LutRGBA + 0;
792 for( i=0; i < lengthR; ++i )
794 *a = LutRedData[i*mult+1];
799 for( i=0; i < lengthG; ++i)
801 *a = LutGreenData[i*mult+1];
806 for(i=0; i < lengthB; ++i)
808 *a = LutBlueData[i*mult+1];
813 for(i=0; i < 256; ++i)
815 *a = 1; // Alpha component
821 * \brief Build the RGB image from the Raw imagage and the LUTs.
823 bool PixelReadConvert::BuildRGBImage()
827 // The job is already done.
833 // The job can't be done
840 // The job can't be done
846 uint8_t* localRGB = RGB;
847 for (size_t i = 0; i < RawSize; ++i )
850 *localRGB++ = LutRGBA[j];
851 *localRGB++ = LutRGBA[j+1];
852 *localRGB++ = LutRGBA[j+2];
859 * @param indent Indentation string to be prepended during printing.
860 * @param os Stream to print to.
862 void PixelReadConvert::Print( std::ostream &os, std::string const & indent )
865 << "--- Pixel information -------------------------"
868 << "Pixel Data: offset " << PixelOffset
869 << " x(" << std::hex << PixelOffset << std::dec
870 << ") length " << PixelDataLength
871 << " x(" << std::hex << PixelDataLength << std::dec
878 RLEInfo->Print( os, indent );
882 gdcmVerboseMacro("Set as RLE file but NO RLEinfo present.");
886 if ( IsJPEG2000 || IsJPEGLossless || IsJPEGLossy || IsJPEGLS )
890 JPEGInfo->Print( os, indent );
894 gdcmVerboseMacro("Set as JPEG file but NO JPEGinfo present.");
899 } // end namespace gdcm
901 // NOTES on File internal calls
904 // ---> GetImageDataIntoVector
905 // |---> GetImageDataIntoVectorRaw
906 // | lut intervention
908 // ---> GetImageDataRaw
909 // ---> GetImageDataIntoVectorRaw