Mercurial > hg > orthanc
comparison PalanthirServer/DicomIntegerPixelAccessor.h @ 53:293038baf8f1
access to multi-frame images
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 10 Sep 2012 15:17:02 +0200 |
parents | a15e90e5d6fc |
children |
comparison
equal
deleted
inserted
replaced
52:e0cac5540668 | 53:293038baf8f1 |
---|---|
30 { | 30 { |
31 private: | 31 private: |
32 unsigned int width_; | 32 unsigned int width_; |
33 unsigned int height_; | 33 unsigned int height_; |
34 unsigned int samplesPerPixel_; | 34 unsigned int samplesPerPixel_; |
35 unsigned int numberOfFrames_; | |
35 const void* pixelData_; | 36 const void* pixelData_; |
36 size_t size_; | 37 size_t size_; |
37 | 38 |
38 uint8_t shift_; | 39 uint8_t shift_; |
39 uint32_t signMask_; | 40 uint32_t signMask_; |
40 uint32_t mask_; | 41 uint32_t mask_; |
41 size_t bytesPerPixel_; | 42 size_t bytesPerPixel_; |
43 unsigned int frame_; | |
44 | |
45 size_t frameOffset_; | |
46 size_t rowOffset_; | |
42 | 47 |
43 public: | 48 public: |
44 DicomIntegerPixelAccessor(const DicomMap& values, | 49 DicomIntegerPixelAccessor(const DicomMap& values, |
45 const void* pixelData, | 50 const void* pixelData, |
46 size_t size); | 51 size_t size); |
53 unsigned int GetHeight() const | 58 unsigned int GetHeight() const |
54 { | 59 { |
55 return height_; | 60 return height_; |
56 } | 61 } |
57 | 62 |
63 unsigned int GetNumberOfFrames() const | |
64 { | |
65 return numberOfFrames_; | |
66 } | |
67 | |
68 unsigned int GetCurrentFrame() const | |
69 { | |
70 return frame_; | |
71 } | |
72 | |
73 void SetCurrentFrame(unsigned int frame); | |
74 | |
58 void GetExtremeValues(int32_t& min, | 75 void GetExtremeValues(int32_t& min, |
59 int32_t& max) const; | 76 int32_t& max) const; |
60 | 77 |
61 int32_t GetValue(unsigned int x, unsigned int y) const; | 78 int32_t GetValue(unsigned int x, unsigned int y) const; |
62 }; | 79 }; |