OFFIS DCMTK  Version 3.6.0
diqtpbox.h
1 /*
2  *
3  * Copyright (C) 2002-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: dcmimage
15  *
16  * Author: Marco Eichelberg
17  *
18  * Purpose: class DcmQuantPixelBoxArray
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-10-14 13:16:30 $
22  * CVS/RCS Revision: $Revision: 1.6 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 
30 #ifndef DIQTPBOX_H
31 #define DIQTPBOX_H
32 
33 
34 #include "dcmtk/config/osconfig.h"
35 
36 #define INCLUDE_CSTDLIB
37 #define INCLUDE_CASSERT
38 #include "dcmtk/ofstd/ofstdinc.h"
39 
40 BEGIN_EXTERN_C
41 #ifdef HAVE_SYS_TYPES_H
42 /* needed e.g. on Solaris for definition of size_t */
43 #include <sys/types.h>
44 #endif
45 END_EXTERN_C
46 
52 {
54  int ind;
55 
57  int colors;
58 
60  unsigned long sum;
61 };
62 
63 
66 
67 
74 {
75 public:
76 
80  DcmQuantPixelBoxArray(unsigned long entries);
81 
84 
90  inline DcmQuantPixelBox& operator[](size_t idx)
91  {
92 #ifdef DEBUG
93  assert(idx < length);
94 #endif
95  return *(array[idx]);
96  }
97 
103  void sort(unsigned long boxes);
104 
105 private:
106 
109 
112 
115 
117  unsigned long length;
118 };
119 
120 
121 #endif
122 
123 
124 /*
125  * CVS/RCS Log:
126  * $Log: diqtpbox.h,v $
127  * Revision 1.6 2010-10-14 13:16:30 joergr
128  * Updated copyright header. Added reference to COPYRIGHT file.
129  *
130  * Revision 1.5 2009-08-19 14:45:30 meichel
131  * Added additional includes needed for Sun Studio 11 on Solaris.
132  *
133  * Revision 1.4 2005-12-08 16:01:52 meichel
134  * Changed include path schema for all DCMTK header files
135  *
136  * Revision 1.3 2003/12/23 12:19:10 joergr
137  * Updated copyright header.
138  *
139  * Revision 1.2 2002/11/27 14:16:56 meichel
140  * Adapted module dcmimage to use of new header file ofstdinc.h
141  *
142  * Revision 1.1 2002/01/25 13:32:06 meichel
143  * Initial release of new color quantization classes and
144  * the dcmquant tool in module dcmimage.
145  *
146  *
147  */


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2