Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomFormat/DicomImageInformation.cpp @ 4279:ab4d015af660
moving inline methods to source files for ABI compatibility
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 03 Nov 2020 20:48:01 +0100 |
parents | bf7b9edf6b81 |
children | 785a2713323e |
comparison
equal
deleted
inserted
replaced
4278:9279de56a405 | 4279:ab4d015af660 |
---|---|
208 target->photometric_ = photometric_; | 208 target->photometric_ = photometric_; |
209 | 209 |
210 return target.release(); | 210 return target.release(); |
211 } | 211 } |
212 | 212 |
213 unsigned int Orthanc::DicomImageInformation::GetWidth() const | |
214 { | |
215 return width_; | |
216 } | |
217 | |
218 unsigned int Orthanc::DicomImageInformation::GetHeight() const | |
219 { | |
220 return height_; | |
221 } | |
222 | |
223 unsigned int DicomImageInformation::GetNumberOfFrames() const | |
224 { | |
225 return numberOfFrames_; | |
226 } | |
227 | |
228 unsigned int DicomImageInformation::GetChannelCount() const | |
229 { | |
230 return samplesPerPixel_; | |
231 } | |
232 | |
233 unsigned int DicomImageInformation::GetBitsStored() const | |
234 { | |
235 return bitsStored_; | |
236 } | |
237 | |
238 size_t DicomImageInformation::GetBytesPerValue() const | |
239 { | |
240 return bytesPerValue_; | |
241 } | |
242 | |
243 bool DicomImageInformation::IsSigned() const | |
244 { | |
245 return isSigned_; | |
246 } | |
247 | |
248 unsigned int DicomImageInformation::GetBitsAllocated() const | |
249 { | |
250 return bitsAllocated_; | |
251 } | |
252 | |
253 unsigned int DicomImageInformation::GetHighBit() const | |
254 { | |
255 return highBit_; | |
256 } | |
257 | |
258 bool DicomImageInformation::IsPlanar() const | |
259 { | |
260 return isPlanar_; | |
261 } | |
262 | |
263 unsigned int DicomImageInformation::GetShift() const | |
264 { | |
265 return highBit_ + 1 - bitsStored_; | |
266 } | |
267 | |
268 PhotometricInterpretation DicomImageInformation::GetPhotometricInterpretation() const | |
269 { | |
270 return photometric_; | |
271 } | |
272 | |
213 bool DicomImageInformation::ExtractPixelFormat(PixelFormat& format, | 273 bool DicomImageInformation::ExtractPixelFormat(PixelFormat& format, |
214 bool ignorePhotometricInterpretation) const | 274 bool ignorePhotometricInterpretation) const |
215 { | 275 { |
216 if (photometric_ == PhotometricInterpretation_Palette) | 276 if (photometric_ == PhotometricInterpretation_Palette) |
217 { | 277 { |