Mercurial > hg > orthanc-client
comparison CppClient/PublicEnumerations.h @ 7:39730d6727f3
public enumerations
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Jun 2015 10:34:41 +0200 |
parents | c584c25a74fd |
children | e59bf2554e59 |
comparison
equal
deleted
inserted
replaced
6:c584c25a74fd | 7:39730d6727f3 |
---|---|
30 **/ | 30 **/ |
31 | 31 |
32 | 32 |
33 #pragma once | 33 #pragma once |
34 | 34 |
35 #include "../Orthanc/Core/Enumerations.h" | |
36 | |
35 #include <laaw/laaw.h> | 37 #include <laaw/laaw.h> |
36 | 38 |
37 namespace Orthanc | 39 namespace OrthancClient |
38 { | 40 { |
39 /** | 41 /** |
40 * {summary}{The memory layout of the pixels (resp. voxels) of a 2D (resp. 3D) image.} | 42 * {summary}{The memory layout of the pixels (resp. voxels) of a 2D (resp. 3D) image.} |
41 **/ | 43 **/ |
42 enum LAAW_API PixelFormat | 44 enum LAAW_API PixelFormat |
43 { | 45 { |
44 /** | 46 /** |
45 * {summary}{Color image in RGB24 format.} | 47 * {summary}{Color image in RGB24 format.} |
46 * {description}{This format describes a color image. The pixels are stored in 3 | 48 * {description}{This format describes a color image. The pixels are stored in 3 |
47 * consecutive bytes. The memory layout is RGB.} | 49 * consecutive bytes. The memory layout is RGB.} |
48 **/ | 50 **/ |
49 PixelFormat_RGB24 = 1, | 51 PixelFormat_RGB24 = Orthanc::PixelFormat_RGB24, |
50 | 52 |
51 /** | 53 /** |
52 * {summary}{Color image in RGBA32 format.} | 54 * {summary}{Color image in RGBA32 format.} |
53 * {description}{This format describes a color image. The pixels are stored in 4 | 55 * {description}{This format describes a color image. The pixels are stored in 4 |
54 * consecutive bytes. The memory layout is RGBA.} | 56 * consecutive bytes. The memory layout is RGBA.} |
55 **/ | 57 **/ |
56 PixelFormat_RGBA32 = 2, | 58 PixelFormat_RGBA32 = Orthanc::PixelFormat_RGBA32, |
57 | 59 |
58 /** | 60 /** |
59 * {summary}{Graylevel 8bpp image.} | 61 * {summary}{Graylevel 8bpp image.} |
60 * {description}{The image is graylevel. Each pixel is unsigned and stored in one byte.} | 62 * {description}{The image is graylevel. Each pixel is unsigned and stored in one byte.} |
61 **/ | 63 **/ |
62 PixelFormat_Grayscale8 = 3, | 64 PixelFormat_Grayscale8 = Orthanc::PixelFormat_Grayscale8, |
63 | 65 |
64 /** | 66 /** |
65 * {summary}{Graylevel, unsigned 16bpp image.} | 67 * {summary}{Graylevel, unsigned 16bpp image.} |
66 * {description}{The image is graylevel. Each pixel is unsigned and stored in two bytes.} | 68 * {description}{The image is graylevel. Each pixel is unsigned and stored in two bytes.} |
67 **/ | 69 **/ |
68 PixelFormat_Grayscale16 = 4, | 70 PixelFormat_Grayscale16 = Orthanc::PixelFormat_Grayscale16, |
69 | 71 |
70 /** | 72 /** |
71 * {summary}{Graylevel, signed 16bpp image.} | 73 * {summary}{Graylevel, signed 16bpp image.} |
72 * {description}{The image is graylevel. Each pixel is signed and stored in two bytes.} | 74 * {description}{The image is graylevel. Each pixel is signed and stored in two bytes.} |
73 **/ | 75 **/ |
74 PixelFormat_SignedGrayscale16 = 5 | 76 PixelFormat_SignedGrayscale16 = Orthanc::PixelFormat_SignedGrayscale16 |
75 }; | 77 }; |
76 | 78 |
77 | 79 |
78 /** | 80 /** |
79 * {summary}{The extraction mode specifies the way the values of the pixels are scaled when downloading a 2D image.} | 81 * {summary}{The extraction mode specifies the way the values of the pixels are scaled when downloading a 2D image.} |
80 **/ | 82 **/ |
82 { | 84 { |
83 /** | 85 /** |
84 * {summary}{Rescaled to 8bpp.} | 86 * {summary}{Rescaled to 8bpp.} |
85 * {description}{The minimum value of the image is set to 0, and its maximum value is set to 255.} | 87 * {description}{The minimum value of the image is set to 0, and its maximum value is set to 255.} |
86 **/ | 88 **/ |
87 ImageExtractionMode_Preview = 1, | 89 ImageExtractionMode_Preview = Orthanc::ImageExtractionMode_Preview, |
88 | 90 |
89 /** | 91 /** |
90 * {summary}{Truncation to the [0, 255] range.} | 92 * {summary}{Truncation to the [0, 255] range.} |
91 **/ | 93 **/ |
92 ImageExtractionMode_UInt8 = 2, | 94 ImageExtractionMode_UInt8 = Orthanc::ImageExtractionMode_UInt8, |
93 | 95 |
94 /** | 96 /** |
95 * {summary}{Truncation to the [0, 65535] range.} | 97 * {summary}{Truncation to the [0, 65535] range.} |
96 **/ | 98 **/ |
97 ImageExtractionMode_UInt16 = 3, | 99 ImageExtractionMode_UInt16 = Orthanc::ImageExtractionMode_UInt16, |
98 | 100 |
99 /** | 101 /** |
100 * {summary}{Truncation to the [-32768, 32767] range.} | 102 * {summary}{Truncation to the [-32768, 32767] range.} |
101 **/ | 103 **/ |
102 ImageExtractionMode_Int16 = 4 | 104 ImageExtractionMode_Int16 = Orthanc::ImageExtractionMode_Int16 |
103 }; | 105 }; |
104 | |
105 | |
106 } | 106 } |