comparison 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
comparison
equal deleted inserted replaced
367:301f2831489c 368:80011cd589e6
43 private: 43 private:
44 unsigned int width_; 44 unsigned int width_;
45 unsigned int height_; 45 unsigned int height_;
46 unsigned int samplesPerPixel_; 46 unsigned int samplesPerPixel_;
47 unsigned int numberOfFrames_; 47 unsigned int numberOfFrames_;
48 unsigned int planarConfiguration_;
48 const void* pixelData_; 49 const void* pixelData_;
49 size_t size_; 50 size_t size_;
50 51
51 uint8_t shift_; 52 uint8_t shift_;
52 uint32_t signMask_; 53 uint32_t signMask_;
85 void SetCurrentFrame(unsigned int frame); 86 void SetCurrentFrame(unsigned int frame);
86 87
87 void GetExtremeValues(int32_t& min, 88 void GetExtremeValues(int32_t& min,
88 int32_t& max) const; 89 int32_t& max) const;
89 90
90 int32_t GetValue(unsigned int x, unsigned int y) const; 91 unsigned int GetChannelCount() const
92 {
93 return samplesPerPixel_;
94 }
95
96 int32_t GetValue(unsigned int x, unsigned int y, unsigned int channel = 0) const;
91 }; 97 };
92 } 98 }