Mercurial > hg > orthanc
comparison Core/Enumerations.h @ 606:ce5d2040c47b find-move-scp
integration mainline -> find-move-scp
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Oct 2013 14:20:13 +0200 |
parents | f64e3838d6e1 9d2592c08919 |
children | 2d0a347e8cfc |
comparison
equal
deleted
inserted
replaced
567:c2be0a0e049e | 606:ce5d2040c47b |
---|---|
30 **/ | 30 **/ |
31 | 31 |
32 | 32 |
33 #pragma once | 33 #pragma once |
34 | 34 |
35 #include "../OrthancCppClient/SharedLibrary/Laaw/laaw.h" | |
36 | |
35 namespace Orthanc | 37 namespace Orthanc |
36 { | 38 { |
37 enum Endianness | 39 enum Endianness |
38 { | 40 { |
39 Endianness_Unknown, | 41 Endianness_Unknown, |
65 ErrorCode_UnknownResource, | 67 ErrorCode_UnknownResource, |
66 ErrorCode_IncompatibleDatabaseVersion, | 68 ErrorCode_IncompatibleDatabaseVersion, |
67 ErrorCode_FullStorage | 69 ErrorCode_FullStorage |
68 }; | 70 }; |
69 | 71 |
70 enum PixelFormat | 72 /** |
71 { | 73 * {summary}{The memory layout of the pixels (resp. voxels) of a 2D (resp. 3D) image.} |
74 **/ | |
75 enum LAAW_API PixelFormat | |
76 { | |
77 /** | |
78 * {summary}{Color image in RGB24 format.} | |
79 * {description}{This format describes a color image. The pixels are stored in 3 | |
80 * consecutive bytes. The memory layout is RGB. | |
81 **/ | |
72 PixelFormat_RGB24, | 82 PixelFormat_RGB24, |
83 | |
84 /** | |
85 * {summary}{Graylevel 8bpp image.} | |
86 * {description}{The image is graylevel. Each pixel is unsigned and stored in one byte.} | |
87 **/ | |
73 PixelFormat_Grayscale8, | 88 PixelFormat_Grayscale8, |
89 | |
90 /** | |
91 * {summary}{Graylevel, unsigned 16bpp image.} | |
92 * {description}{The image is graylevel. Each pixel is unsigned and stored in two bytes.} | |
93 **/ | |
74 PixelFormat_Grayscale16, | 94 PixelFormat_Grayscale16, |
95 | |
96 /** | |
97 * {summary}{Graylevel, signed 16bpp image.} | |
98 * {description}{The image is graylevel. Each pixel is signed and stored in two bytes.} | |
99 **/ | |
75 PixelFormat_SignedGrayscale16 | 100 PixelFormat_SignedGrayscale16 |
76 }; | 101 }; |
77 | 102 |
78 enum ImageExtractionMode | 103 |
79 { | 104 /** |
105 * {summary}{The extraction mode specifies the way the values of the pixels are scaled when downloading a 2D image.} | |
106 **/ | |
107 enum LAAW_API ImageExtractionMode | |
108 { | |
109 /** | |
110 * {summary}{Rescaled to 8bpp.} | |
111 * {description}{The minimum value of the image is set to 0, and its maximum value is set to 255.} | |
112 **/ | |
80 ImageExtractionMode_Preview, | 113 ImageExtractionMode_Preview, |
114 | |
115 /** | |
116 * {summary}{Truncation to the [0, 255] range.} | |
117 **/ | |
81 ImageExtractionMode_UInt8, | 118 ImageExtractionMode_UInt8, |
119 | |
120 /** | |
121 * {summary}{Truncation to the [0, 65535] range.} | |
122 **/ | |
82 ImageExtractionMode_UInt16, | 123 ImageExtractionMode_UInt16, |
124 | |
125 /** | |
126 * {summary}{Truncation to the [-32768, 32767] range.} | |
127 **/ | |
83 ImageExtractionMode_Int16 | 128 ImageExtractionMode_Int16 |
84 }; | 129 }; |
85 | 130 |
86 | 131 |
87 /** | 132 /** |