comparison OrthancStone/Sources/Volumes/ImageBuffer3D.h @ 1782:f053c80ea411

ImageBuffer3D::CommitSagittalSlice()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 14 May 2021 16:30:54 +0200
parents 9ac2a65d4172
children 75d3e2ab1fe1
comparison
equal deleted inserted replaced
1781:bf4b15b059ea 1782:f053c80ea411
93 unsigned int slice, 93 unsigned int slice,
94 bool readOnly); 94 bool readOnly);
95 95
96 Orthanc::Image* ExtractSagittalSlice(unsigned int slice) const; 96 Orthanc::Image* ExtractSagittalSlice(unsigned int slice) const;
97 97
98 void CommitSagittalSlice(unsigned int slice,
99 const Orthanc::ImageAccessor& source);
100
98 template <typename T> 101 template <typename T>
99 T GetPixelUnchecked(unsigned int x, 102 T GetPixelUnchecked(unsigned int x,
100 unsigned int y, 103 unsigned int y,
101 unsigned int z) const 104 unsigned int z) const
102 { 105 {
202 private: 205 private:
203 ImageBuffer3D& that_; 206 ImageBuffer3D& that_;
204 bool modified_; 207 bool modified_;
205 Orthanc::ImageAccessor accessor_; 208 Orthanc::ImageAccessor accessor_;
206 std::unique_ptr<Orthanc::Image> sagittal_; // Unused for axial and coronal 209 std::unique_ptr<Orthanc::Image> sagittal_; // Unused for axial and coronal
210 unsigned int slice_;
207 211
208 void Flush(); 212 void Flush();
209 213
210 public: 214 public:
211 SliceWriter(ImageBuffer3D& that, 215 SliceWriter(ImageBuffer3D& that,