Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomFormat/DicomImageInformation.cpp Tue Nov 03 20:05:55 2020 +0100 +++ b/OrthancFramework/Sources/DicomFormat/DicomImageInformation.cpp Tue Nov 03 20:48:01 2020 +0100 @@ -210,6 +210,66 @@ return target.release(); } + unsigned int Orthanc::DicomImageInformation::GetWidth() const + { + return width_; + } + + unsigned int Orthanc::DicomImageInformation::GetHeight() const + { + return height_; + } + + unsigned int DicomImageInformation::GetNumberOfFrames() const + { + return numberOfFrames_; + } + + unsigned int DicomImageInformation::GetChannelCount() const + { + return samplesPerPixel_; + } + + unsigned int DicomImageInformation::GetBitsStored() const + { + return bitsStored_; + } + + size_t DicomImageInformation::GetBytesPerValue() const + { + return bytesPerValue_; + } + + bool DicomImageInformation::IsSigned() const + { + return isSigned_; + } + + unsigned int DicomImageInformation::GetBitsAllocated() const + { + return bitsAllocated_; + } + + unsigned int DicomImageInformation::GetHighBit() const + { + return highBit_; + } + + bool DicomImageInformation::IsPlanar() const + { + return isPlanar_; + } + + unsigned int DicomImageInformation::GetShift() const + { + return highBit_ + 1 - bitsStored_; + } + + PhotometricInterpretation DicomImageInformation::GetPhotometricInterpretation() const + { + return photometric_; + } + bool DicomImageInformation::ExtractPixelFormat(PixelFormat& format, bool ignorePhotometricInterpretation) const {