1 /*=========================================================================
4 Module: $RCSfile: gdcmFile.cxx,v $
6 Date: $Date: 2005/01/08 15:03:59 $
7 Version: $Revision: 1.187 $
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 =========================================================================*/
20 #include "gdcmDocument.h"
21 #include "gdcmDebug.h"
23 #include "gdcmBinEntry.h"
24 #include "gdcmHeader.h"
25 #include "gdcmPixelReadConvert.h"
26 #include "gdcmPixelWriteConvert.h"
27 #include "gdcmDocEntryArchive.h"
33 typedef std::pair<TagDocEntryHT::iterator,TagDocEntryHT::iterator> IterHT;
35 //-------------------------------------------------------------------------
36 // Constructor / Destructor
38 * \brief Constructor dedicated to deal with the *pixels* area of a ACR/DICOMV3
39 * file (Header only deals with the ... header)
40 * Opens (in read only and when possible) an existing file and checks
41 * for DICOM compliance. Returns NULL on failure.
42 * It will be up to the user to load the pixels into memory
43 * (see GetImageData, GetImageDataRaw)
44 * \note the in-memory representation of all available tags found in
45 * the DICOM header is post-poned to first header information access.
46 * This avoid a double parsing of public part of the header when
47 * one sets an a posteriori shadow dictionary (efficiency can be
48 * seen as a side effect).
52 HeaderInternal = new Header( );
58 * \brief Constructor dedicated to deal with the *pixels* area of a ACR/DICOMV3
59 * file (Header only deals with the ... header)
60 * Opens (in read only and when possible) an existing file and checks
61 * for DICOM compliance. Returns NULL on failure.
62 * It will be up to the user to load the pixels into memory
63 * (see GetImageData, GetImageDataRaw)
64 * \note the in-memory representation of all available tags found in
65 * the DICOM header is post-poned to first header information access.
66 * This avoid a double parsing of public part of the header when
67 * user sets an a posteriori shadow dictionary (efficiency can be
68 * seen as a side effect).
69 * @param header already built Header
71 File::File(Header *header)
73 HeaderInternal = header;
79 * \brief Constructor dedicated to deal with the *pixels* area of a ACR/DICOMV3
80 * file (Header only deals with the ... header)
81 * Opens (in read only and when possible) an existing file and checks
82 * for DICOM compliance. Returns NULL on failure.
83 * It will be up to the user to load the pixels into memory
84 * (see GetImageData, GetImageDataRaw)
85 * \note the in-memory representation of all available tags found in
86 * the DICOM header is post-poned to first header information access.
87 * This avoid a double parsing of public part of the header when
88 * one sets an a posteriori shadow dictionary (efficiency can be
89 * seen as a side effect).
90 * @param filename file to be opened for parsing
92 File::File(std::string const & filename )
94 HeaderInternal = new Header( filename );
100 * \brief canonical destructor
101 * \note If the Header was created by the File constructor,
102 * it is destroyed by the File
106 if( PixelReadConverter )
108 delete PixelReadConverter;
110 if( PixelWriteConverter )
112 delete PixelWriteConverter;
121 delete HeaderInternal;
126 //-----------------------------------------------------------------------------
128 void File::Print(std::ostream &os)
130 HeaderInternal->SetPrintLevel(PrintLevel);
131 HeaderInternal->Print(os);
133 PixelReadConverter->SetPrintLevel(PrintLevel);
134 PixelReadConverter->Print(os);
137 //-----------------------------------------------------------------------------
140 * \brief Get the size of the image data
142 * If the image can be RGB (with a lut or by default), the size
143 * corresponds to the RGB image
144 * @return The image size
146 size_t File::GetImageDataSize()
148 if ( PixelWriteConverter->GetUserData() )
150 return PixelWriteConverter->GetUserDataSize();
153 return PixelReadConverter->GetRGBSize();
157 * \brief Get the size of the image data
159 * If the image can be RGB by transformation in a LUT, this
160 * transformation isn't considered
161 * @return The raw image size
163 size_t File::GetImageDataRawSize()
165 if ( PixelWriteConverter->GetUserData() )
167 return PixelWriteConverter->GetUserDataSize();
170 return PixelReadConverter->GetRawSize();
174 * \brief - Allocates necessary memory,
175 * - Reads the pixels from disk (uncompress if necessary),
176 * - Transforms YBR pixels, if any, into RGB pixels
177 * - Transforms 3 planes R, G, B, if any, into a single RGB Plane
178 * - Transforms single Grey plane + 3 Palettes into a RGB Plane
179 * - Copies the pixel data (image[s]/volume[s]) to newly allocated zone.
180 * @return Pointer to newly allocated pixel data.
181 * NULL if alloc fails
183 uint8_t *File::GetImageData()
185 if ( PixelWriteConverter->GetUserData() )
187 return PixelWriteConverter->GetUserData();
192 // If the decompression failed nothing can be done.
196 if ( HeaderInternal->HasLUT() && PixelReadConverter->BuildRGBImage() )
198 return PixelReadConverter->GetRGB();
202 // When no LUT or LUT conversion fails, return the Raw
203 return PixelReadConverter->GetRaw();
208 * \brief Allocates necessary memory,
209 * Transforms YBR pixels (if any) into RGB pixels
210 * Transforms 3 planes R, G, B (if any) into a single RGB Plane
211 * Copies the pixel data (image[s]/volume[s]) to newly allocated zone.
212 * DOES NOT transform Grey plane + 3 Palettes into a RGB Plane
213 * @return Pointer to newly allocated pixel data.
214 * \ NULL if alloc fails
216 uint8_t *File::GetImageDataRaw ()
223 * Read the pixels from disk (uncompress if necessary),
224 * Transforms YBR pixels, if any, into RGB pixels
225 * Transforms 3 planes R, G, B, if any, into a single RGB Plane
226 * Transforms single Grey plane + 3 Palettes into a RGB Plane
227 * Copies at most MaxSize bytes of pixel data to caller allocated
229 * \warning This function allows people that want to build a volume
230 * from an image stack *not to* have, first to get the image pixels,
231 * and then move them to the volume area.
232 * It's absolutely useless for any VTK user since vtk chooses
233 * to invert the lines of an image, that is the last line comes first
234 * (for some axis related reasons?). Hence he will have
235 * to load the image line by line, starting from the end.
236 * VTK users have to call GetImageData
238 * @param destination Address (in caller's memory space) at which the
239 * pixel data should be copied
240 * @param maxSize Maximum number of bytes to be copied. When MaxSize
241 * is not sufficient to hold the pixel data the copy is not
242 * executed (i.e. no partial copy).
243 * @return On success, the number of bytes actually copied. Zero on
244 * failure e.g. MaxSize is lower than necessary.
246 size_t File::GetImageDataIntoVector (void *destination, size_t maxSize)
250 // If the decompression failed nothing can be done.
254 if ( HeaderInternal->HasLUT() && PixelReadConverter->BuildRGBImage() )
256 if ( PixelReadConverter->GetRGBSize() > maxSize )
258 gdcmVerboseMacro( "Pixel data bigger than caller's expected MaxSize");
262 (void*)PixelReadConverter->GetRGB(),
263 PixelReadConverter->GetRGBSize() );
264 return PixelReadConverter->GetRGBSize();
267 // Either no LUT conversion necessary or LUT conversion failed
268 if ( PixelReadConverter->GetRawSize() > maxSize )
270 gdcmVerboseMacro( "Pixel data bigger than caller's expected MaxSize");
274 (void*)PixelReadConverter->GetRaw(),
275 PixelReadConverter->GetRawSize() );
276 return PixelReadConverter->GetRawSize();
280 * \brief Points the internal pointer to the callers inData
281 * image representation, BUT WITHOUT COPYING THE DATA.
282 * 'image' Pixels are presented as C-like 2D arrays : line per line.
283 * 'volume'Pixels are presented as C-like 3D arrays : plane per plane
284 * \warning Since the pixels are not copied, it is the caller's responsability
285 * not to deallocate it's data before gdcm uses them (e.g. with
286 * the Write() method.
287 * @param inData user supplied pixel area
288 * @param expectedSize total image size, in Bytes
292 void File::SetImageData(uint8_t *inData, size_t expectedSize)
294 SetUserData(inData,expectedSize);
298 * \brief Set the image datas defined by the user
299 * \warning When writting the file, this datas are get as default datas to write
301 void File::SetUserData(uint8_t *data, size_t expectedSize)
303 PixelWriteConverter->SetUserData(data,expectedSize);
307 * \brief Get the image datas defined by the user
308 * \warning When writting the file, this datas are get as default data to write
310 uint8_t *File::GetUserData()
312 return PixelWriteConverter->GetUserData();
316 * \brief Get the image data size defined by the user
317 * \warning When writting the file, this datas are get as default data to write
319 size_t File::GetUserDataSize()
321 return PixelWriteConverter->GetUserDataSize();
325 * \brief Get the image datas from the file.
326 * If a LUT is found, the data are expanded to be RGB
328 uint8_t *File::GetRGBData()
330 return PixelReadConverter->GetRGB();
334 * \brief Get the image data size from the file.
335 * If a LUT is found, the data are expanded to be RGB
337 size_t File::GetRGBDataSize()
339 return PixelReadConverter->GetRGBSize();
343 * \brief Get the image datas from the file.
344 * If a LUT is found, the datas are not expanded !
346 uint8_t *File::GetRawData()
348 return PixelReadConverter->GetRaw();
352 * \brief Get the image data size from the file.
353 * If a LUT is found, the data are not expanded !
355 size_t File::GetRawDataSize()
357 return PixelReadConverter->GetRawSize();
361 * \brief Writes on disk A SINGLE Dicom file
362 * NO test is performed on processor "Endiannity".
363 * It's up to the user to call his Reader properly
364 * @param fileName name of the file to be created
365 * (any already existing file is over written)
366 * @return false if write fails
369 bool File::WriteRawData(std::string const &fileName)
371 std::ofstream fp1(fileName.c_str(), std::ios::out | std::ios::binary );
374 gdcmVerboseMacro( "Fail to open (write) file:" << fileName.c_str());
378 if( PixelWriteConverter->GetUserData() )
380 fp1.write( (char*)PixelWriteConverter->GetUserData(),
381 PixelWriteConverter->GetUserDataSize() );
383 else if ( PixelReadConverter->GetRGB() )
385 fp1.write( (char*)PixelReadConverter->GetRGB(),
386 PixelReadConverter->GetRGBSize());
388 else if ( PixelReadConverter->GetRaw() )
390 fp1.write( (char*)PixelReadConverter->GetRaw(),
391 PixelReadConverter->GetRawSize());
395 gdcmErrorMacro( "Nothing written." );
404 * \brief Writes on disk A SINGLE Dicom file,
405 * using the Implicit Value Representation convention
406 * NO test is performed on processor "Endiannity".
407 * @param fileName name of the file to be created
408 * (any already existing file is overwritten)
409 * @return false if write fails
412 bool File::WriteDcmImplVR (std::string const &fileName)
414 SetWriteTypeToDcmImplVR();
415 return Write(fileName);
419 * \brief Writes on disk A SINGLE Dicom file,
420 * using the Explicit Value Representation convention
421 * NO test is performed on processor "Endiannity".
422 * @param fileName name of the file to be created
423 * (any already existing file is overwritten)
424 * @return false if write fails
427 bool File::WriteDcmExplVR (std::string const &fileName)
429 SetWriteTypeToDcmExplVR();
430 return Write(fileName);
434 * \brief Writes on disk A SINGLE Dicom file,
435 * using the ACR-NEMA convention
436 * NO test is performed on processor "Endiannity".
437 * (a l'attention des logiciels cliniques
438 * qui ne prennent en entrée QUE des images ACR ...
439 * \warning if a DICOM_V3 header is supplied,
440 * groups < 0x0008 and shadow groups are ignored
441 * \warning NO TEST is performed on processor "Endiannity".
442 * @param fileName name of the file to be created
443 * (any already existing file is overwritten)
444 * @return false if write fails
447 bool File::WriteAcr (std::string const &fileName)
450 return Write(fileName);
454 * \brief Writes on disk A SINGLE Dicom file,
455 * @param fileName name of the file to be created
456 * (any already existing file is overwritten)
457 * @return false if write fails
459 bool File::Write(std::string const &fileName)
464 SetWriteFileTypeToImplicitVR();
467 SetWriteFileTypeToExplicitVR();
471 SetWriteFileTypeToACR();
474 SetWriteFileTypeToExplicitVR();
477 // --------------------------------------------------------------
478 // Special Patch to allow gdcm to re-write ACR-LibIDO formated images
480 // if recognition code tells us we dealt with a LibIDO image
481 // we reproduce on disk the switch between lineNumber and columnNumber
482 // just before writting ...
483 /// \todo the best trick would be *change* the recognition code
484 /// but pb expected if user deals with, e.g. COMPLEX images
485 if( WriteType == ACR_LIBIDO )
491 SetWriteToNoLibido();
493 // ----------------- End of Special Patch ----------------
505 bool check = CheckWriteIntegrity();
508 check = HeaderInternal->Write(fileName,WriteType);
512 RestoreWriteFileType();
514 // --------------------------------------------------------------
515 // Special Patch to allow gdcm to re-write ACR-LibIDO formated images
517 // ...and we restore the Header to be Dicom Compliant again
518 // just after writting
519 RestoreWriteOfLibido();
520 // ----------------- End of Special Patch ----------------
526 * \brief Accesses an existing DocEntry (i.e. a Dicom Element)
527 * through it's (group, element) and modifies it's content with
529 * @param content new value (string) to substitute with
530 * @param group group number of the Dicom Element to modify
531 * @param element element number of the Dicom Element to modify
533 bool File::SetEntry(std::string const &content,
534 uint16_t group, uint16_t element)
536 return HeaderInternal->SetEntry(content,group,element);
541 * \brief Accesses an existing DocEntry (i.e. a Dicom Element)
542 * through it's (group, element) and modifies it's content with
544 * @param content new value (void* -> uint8_t*) to substitute with
545 * @param lgth new value length
546 * @param group group number of the Dicom Element to modify
547 * @param element element number of the Dicom Element to modify
549 bool File::SetEntry(uint8_t *content, int lgth,
550 uint16_t group, uint16_t element)
552 return HeaderInternal->SetEntry(content,lgth,group,element);
556 * \brief Modifies the value of a given Doc Entry (Dicom Element)
557 * when it exists. Create it with the given value when unexistant.
558 * @param content (string) Value to be set
559 * @param group Group number of the Entry
560 * @param element Element number of the Entry
561 * \return pointer to the modified/created Header Entry (NULL when creation
564 bool File::ReplaceOrCreate(std::string const &content,
565 uint16_t group, uint16_t element)
567 return HeaderInternal->ReplaceOrCreate(content,group,element) != NULL;
571 * \brief Modifies the value of a given Header Entry (Dicom Element)
572 * when it exists. Create it with the given value when unexistant.
573 * A copy of the binArea is made to be kept in the Document.
574 * @param binArea (binary) value to be set
575 * @param group Group number of the Entry
576 * @param element Element number of the Entry
577 * \return pointer to the modified/created Header Entry (NULL when creation
580 bool File::ReplaceOrCreate(uint8_t *binArea, int lgth,
581 uint16_t group, uint16_t element)
583 return HeaderInternal->ReplaceOrCreate(binArea,lgth,group,element) != NULL;
587 * \brief Access to the underlying \ref PixelReadConverter RGBA LUT
589 uint8_t* File::GetLutRGBA()
591 return PixelReadConverter->GetLutRGBA();
594 //-----------------------------------------------------------------------------
598 * \brief Check the write integrity
600 * The tests made are :
601 * - verify the size of the image to write with the possible write
602 * when the user set an image data
603 * @return true if the check successfulls
605 bool File::CheckWriteIntegrity()
607 if(PixelWriteConverter->GetUserData())
609 int numberBitsAllocated = HeaderInternal->GetBitsAllocated();
610 if ( numberBitsAllocated == 0 || numberBitsAllocated == 12 )
612 numberBitsAllocated = 16;
615 size_t decSize = HeaderInternal->GetXSize()
616 * HeaderInternal->GetYSize()
617 * HeaderInternal->GetZSize()
618 * ( numberBitsAllocated / 8 )
619 * HeaderInternal->GetSamplesPerPixel();
620 size_t rgbSize = decSize;
621 if( HeaderInternal->HasLUT() )
622 rgbSize = decSize * 3;
627 if( decSize!=PixelWriteConverter->GetUserDataSize() )
629 gdcmVerboseMacro( "Data size is incorrect (Raw)" << decSize
630 << " / " << PixelWriteConverter->GetUserDataSize() );
635 if( rgbSize!=PixelWriteConverter->GetUserDataSize() )
637 gdcmVerboseMacro( "Data size is incorrect (RGB)" << decSize
638 << " / " << PixelWriteConverter->GetUserDataSize() );
648 void File::SetWriteToRaw()
650 if(HeaderInternal->GetNumberOfScalarComponents()==3 && !HeaderInternal->HasLUT())
656 ValEntry *photInt = CopyValEntry(0x0028,0x0004);
657 if(HeaderInternal->HasLUT())
659 photInt->SetValue("PALETTE COLOR ");
663 photInt->SetValue("MONOCHROME1 ");
666 PixelWriteConverter->SetReadData(PixelReadConverter->GetRaw(),
667 PixelReadConverter->GetRawSize());
669 BinEntry *pixel = CopyBinEntry(GetHeader()->GetGrPixel(),GetHeader()->GetNumPixel());
670 pixel->SetValue(GDCM_BINLOADED);
671 pixel->SetBinArea(PixelWriteConverter->GetData(),false);
672 pixel->SetLength(PixelWriteConverter->GetDataSize());
674 Archive->Push(photInt);
675 Archive->Push(pixel);
679 void File::SetWriteToRGB()
681 if(HeaderInternal->GetNumberOfScalarComponents()==3)
683 PixelReadConverter->BuildRGBImage();
685 ValEntry *spp = CopyValEntry(0x0028,0x0002);
688 ValEntry *planConfig = CopyValEntry(0x0028,0x0006);
689 planConfig->SetValue("0 ");
691 ValEntry *photInt = CopyValEntry(0x0028,0x0004);
692 photInt->SetValue("RGB ");
694 if(PixelReadConverter->GetRGB())
696 PixelWriteConverter->SetReadData(PixelReadConverter->GetRGB(),
697 PixelReadConverter->GetRGBSize());
701 PixelWriteConverter->SetReadData(PixelReadConverter->GetRaw(),
702 PixelReadConverter->GetRawSize());
705 BinEntry *pixel = CopyBinEntry(GetHeader()->GetGrPixel(),GetHeader()->GetNumPixel());
706 pixel->SetValue(GDCM_BINLOADED);
707 pixel->SetBinArea(PixelWriteConverter->GetData(),false);
708 pixel->SetLength(PixelWriteConverter->GetDataSize());
711 Archive->Push(planConfig);
712 Archive->Push(photInt);
713 Archive->Push(pixel);
716 Archive->Push(0x0028,0x1101);
717 Archive->Push(0x0028,0x1102);
718 Archive->Push(0x0028,0x1103);
719 Archive->Push(0x0028,0x1201);
720 Archive->Push(0x0028,0x1202);
721 Archive->Push(0x0028,0x1203);
724 // Thus, we have a RGB image and the bits allocated = 24 and
725 // samples per pixels = 1 (in the read file)
726 if(HeaderInternal->GetBitsAllocated()==24)
728 ValEntry *bitsAlloc = CopyValEntry(0x0028,0x0100);
729 bitsAlloc->SetValue("8 ");
731 ValEntry *bitsStored = CopyValEntry(0x0028,0x0101);
732 bitsStored->SetValue("8 ");
734 ValEntry *highBit = CopyValEntry(0x0028,0x0102);
735 highBit->SetValue("7 ");
737 Archive->Push(bitsAlloc);
738 Archive->Push(bitsStored);
739 Archive->Push(highBit);
748 void File::RestoreWrite()
750 Archive->Restore(0x0028,0x0002);
751 Archive->Restore(0x0028,0x0004);
752 Archive->Restore(0x0028,0x0006);
753 Archive->Restore(GetHeader()->GetGrPixel(),GetHeader()->GetNumPixel());
755 // For old ACR-NEMA (24 bits problem)
756 Archive->Restore(0x0028,0x0100);
757 Archive->Restore(0x0028,0x0101);
758 Archive->Restore(0x0028,0x0102);
761 Archive->Restore(0x0028,0x1101);
762 Archive->Restore(0x0028,0x1102);
763 Archive->Restore(0x0028,0x1103);
764 Archive->Restore(0x0028,0x1201);
765 Archive->Restore(0x0028,0x1202);
766 Archive->Restore(0x0028,0x1203);
769 void File::SetWriteFileTypeToACR()
771 Archive->Push(0x0002,0x0010);
774 void File::SetWriteFileTypeToExplicitVR()
776 std::string ts = Util::DicomString(
777 Document::GetTransferSyntaxValue(ExplicitVRLittleEndian).c_str() );
779 ValEntry *tss = CopyValEntry(0x0002,0x0010);
785 void File::SetWriteFileTypeToImplicitVR()
787 std::string ts = Util::DicomString(
788 Document::GetTransferSyntaxValue(ImplicitVRLittleEndian).c_str() );
790 ValEntry *tss = CopyValEntry(0x0002,0x0010);
796 void File::RestoreWriteFileType()
798 Archive->Restore(0x0002,0x0010);
801 void File::SetWriteToLibido()
803 ValEntry *oldRow = dynamic_cast<ValEntry *>
804 (HeaderInternal->GetDocEntry(0x0028, 0x0010));
805 ValEntry *oldCol = dynamic_cast<ValEntry *>
806 (HeaderInternal->GetDocEntry(0x0028, 0x0011));
808 if( oldRow && oldCol )
810 std::string rows, columns;
812 ValEntry *newRow=new ValEntry(oldRow->GetDictEntry());
813 ValEntry *newCol=new ValEntry(oldCol->GetDictEntry());
815 newRow->Copy(oldCol);
816 newCol->Copy(oldRow);
818 newRow->SetValue(oldCol->GetValue());
819 newCol->SetValue(oldRow->GetValue());
821 Archive->Push(newRow);
822 Archive->Push(newCol);
825 ValEntry *libidoCode = CopyValEntry(0x0008,0x0010);
826 libidoCode->SetValue("ACRNEMA_LIBIDO_1.1");
827 Archive->Push(libidoCode);
830 void File::SetWriteToNoLibido()
832 ValEntry *recCode = dynamic_cast<ValEntry *>
833 (HeaderInternal->GetDocEntry(0x0008,0x0010));
836 if( recCode->GetValue() == "ACRNEMA_LIBIDO_1.1" )
838 ValEntry *libidoCode = CopyValEntry(0x0008,0x0010);
839 libidoCode->SetValue("");
840 Archive->Push(libidoCode);
845 void File::RestoreWriteOfLibido()
847 Archive->Restore(0x0028,0x0010);
848 Archive->Restore(0x0028,0x0011);
849 Archive->Restore(0x0008,0x0010);
852 ValEntry *File::CopyValEntry(uint16_t group,uint16_t element)
854 DocEntry *oldE = HeaderInternal->GetDocEntry(group, element);
859 newE = new ValEntry(oldE->GetDictEntry());
864 newE = GetHeader()->NewValEntry(group,element);
870 BinEntry *File::CopyBinEntry(uint16_t group,uint16_t element)
872 DocEntry *oldE = HeaderInternal->GetDocEntry(group, element);
877 newE = new BinEntry(oldE->GetDictEntry());
882 newE = GetHeader()->NewBinEntry(group,element);
888 //-----------------------------------------------------------------------------
891 * \brief Factorization for various forms of constructors.
893 void File::Initialise()
895 WriteMode = WMODE_RAW;
896 WriteType = ExplicitVR;
898 PixelReadConverter = new PixelReadConvert;
899 PixelWriteConverter = new PixelWriteConvert;
900 Archive = new DocEntryArchive( HeaderInternal );
902 if ( HeaderInternal->IsReadable() )
904 PixelReadConverter->GrabInformationsFromHeader( HeaderInternal );
908 uint8_t *File::GetRaw()
910 uint8_t *raw = PixelReadConverter->GetRaw();
913 // The Raw image migth not be loaded yet:
914 std::ifstream *fp = HeaderInternal->OpenFile();
915 PixelReadConverter->ReadAndDecompressPixelData( fp );
917 HeaderInternal->CloseFile();
919 raw = PixelReadConverter->GetRaw();
922 gdcmVerboseMacro( "Read/decompress of pixel data apparently went wrong.");
930 //-----------------------------------------------------------------------------
933 //-----------------------------------------------------------------------------
934 } // end namespace gdcm