1 /*=========================================================================
4 Module: $RCSfile: gdcmRLEFrame.h,v $
6 Date: $Date: 2004/12/03 20:16:58 $
7 Version: $Revision: 1.10 $
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 #ifndef GDCMRLEFRAME_H
21 #define GDCMRLEFRAME_H
23 #include "gdcmCommon.h"
30 * \brief Utility class for summerizing the informations of a SINGLE RLE
31 * frame of an "Encapsulated RLE Compressed Image" (refer to
32 * PS 3.5-2003 annex G).
33 * This information is a mix of:
34 * - the RLE Header (see PS 3.5-2003 section G5) and
35 * - the lengths of each RLE segment [ which can be decuded from
36 * both the above RLE Header and the itemlength of the frame).
38 * Each instance of this class (they can be as many instances for
39 * a given Document as they are frames and they are collected in
40 * a \ref RLEFramesInfo ) describes :
41 * - the total number of segments (up to 15),
42 * - the offsets of each segment of the frame,
43 * - the (corresponding) lengths of each segment of the frame.
45 class GDCM_EXPORT RLEFrame
47 friend class Document;
48 friend class PixelReadConvert;
49 unsigned int NumberFragments;
53 RLEFrame() { NumberFragments = 0; }
54 void Print( std::string indent = "", std::ostream &os = std::cout );
57 } // end namespace gdcm
58 //-----------------------------------------------------------------------------