Mercurial > hg > orthanc-wsi
comparison Framework/ColorSpaces.h @ 331:cf828b381bc9
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 18 Oct 2024 13:16:02 +0200 |
parents | c42083d50ddf |
children |
comparison
equal
deleted
inserted
replaced
330:c42083d50ddf | 331:cf828b381bc9 |
---|---|
49 g_(g), | 49 g_(g), |
50 b_(b) | 50 b_(b) |
51 { | 51 { |
52 } | 52 } |
53 | 53 |
54 RGBColor(const sRGBColor& srgb); | 54 explicit RGBColor(const sRGBColor& srgb); |
55 | 55 |
56 uint8_t GetR() const | 56 uint8_t GetR() const |
57 { | 57 { |
58 return r_; | 58 return r_; |
59 } | 59 } |
87 g_(g), | 87 g_(g), |
88 b_(b) | 88 b_(b) |
89 { | 89 { |
90 } | 90 } |
91 | 91 |
92 sRGBColor(const RGBColor& rgb); | 92 explicit sRGBColor(const RGBColor& rgb); |
93 | 93 |
94 sRGBColor(const XYZColor& xyz); | 94 explicit sRGBColor(const XYZColor& xyz); |
95 | 95 |
96 float GetR() const | 96 float GetR() const |
97 { | 97 { |
98 return r_; | 98 return r_; |
99 } | 99 } |
116 float x_; | 116 float x_; |
117 float y_; | 117 float y_; |
118 float z_; | 118 float z_; |
119 | 119 |
120 public: | 120 public: |
121 XYZColor(const sRGBColor& srgb); | 121 explicit XYZColor(const sRGBColor& srgb); |
122 | 122 |
123 XYZColor(const LABColor& lab); | 123 explicit XYZColor(const LABColor& lab); |
124 | 124 |
125 float GetX() const | 125 float GetX() const |
126 { | 126 { |
127 return x_; | 127 return x_; |
128 } | 128 } |
161 a_(a), | 161 a_(a), |
162 b_(b) | 162 b_(b) |
163 { | 163 { |
164 } | 164 } |
165 | 165 |
166 LABColor(const XYZColor& xyz); | 166 explicit LABColor(const XYZColor& xyz); |
167 | 167 |
168 float GetL() const | 168 float GetL() const |
169 { | 169 { |
170 return l_; | 170 return l_; |
171 } | 171 } |