Mercurial > hg > orthanc
comparison Core/Images/ImageAccessor.h @ 2861:9b4251721f22
ImageAccessor now non-copyable
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Oct 2018 17:46:02 +0200 |
parents | be1dbb1dcdd6 |
children | 0f07bdae0805 |
comparison
equal
deleted
inserted
replaced
2857:482631e4e290 | 2861:9b4251721f22 |
---|---|
35 | 35 |
36 #include "../Enumerations.h" | 36 #include "../Enumerations.h" |
37 | 37 |
38 #include <string> | 38 #include <string> |
39 #include <stdint.h> | 39 #include <stdint.h> |
40 #include <boost/noncopyable.hpp> | |
40 | 41 |
41 namespace Orthanc | 42 namespace Orthanc |
42 { | 43 { |
43 class ImageAccessor | 44 class ImageAccessor : public boost::noncopyable |
44 { | 45 { |
45 private: | 46 private: |
46 template <Orthanc::PixelFormat Format> | 47 template <Orthanc::PixelFormat Format> |
47 friend struct ImageTraits; | 48 friend struct ImageTraits; |
48 | 49 |
140 unsigned int pitch, | 141 unsigned int pitch, |
141 void *buffer); | 142 void *buffer); |
142 | 143 |
143 void ToMatlabString(std::string& target) const; | 144 void ToMatlabString(std::string& target) const; |
144 | 145 |
145 ImageAccessor GetRegion(unsigned int x, | 146 void GetRegion(ImageAccessor& accessor, |
146 unsigned int y, | 147 unsigned int x, |
147 unsigned int width, | 148 unsigned int y, |
148 unsigned int height) const; | 149 unsigned int width, |
150 unsigned int height) const; | |
149 | 151 |
150 void SetFormat(PixelFormat format); | 152 void SetFormat(PixelFormat format); |
151 }; | 153 }; |
152 } | 154 } |