Mercurial > hg > orthanc
diff Core/DicomFormat/DicomIntegerPixelAccessor.h @ 368:80011cd589e6
support of rgb images
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 18 Feb 2013 16:07:28 +0100 |
parents | fe180eae201d |
children | bdd72233b105 |
line wrap: on
line diff
--- a/Core/DicomFormat/DicomIntegerPixelAccessor.h Thu Feb 07 22:08:59 2013 +0100 +++ b/Core/DicomFormat/DicomIntegerPixelAccessor.h Mon Feb 18 16:07:28 2013 +0100 @@ -45,6 +45,7 @@ unsigned int height_; unsigned int samplesPerPixel_; unsigned int numberOfFrames_; + unsigned int planarConfiguration_; const void* pixelData_; size_t size_; @@ -87,6 +88,11 @@ void GetExtremeValues(int32_t& min, int32_t& max) const; - int32_t GetValue(unsigned int x, unsigned int y) const; + unsigned int GetChannelCount() const + { + return samplesPerPixel_; + } + + int32_t GetValue(unsigned int x, unsigned int y, unsigned int channel = 0) const; }; }