comparison Framework/Volumes/ImageBuffer3D.h @ 192:371da7fe2c0e wasm

FiniteProjectiveCamera::ApplyRaytracer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 16 Mar 2018 17:11:11 +0100
parents a12ca0f4aaaa
children 7a031ac16b2d
comparison
equal deleted inserted replaced
191:46cb2eedc2e0 192:371da7fe2c0e
47 float maxValue_; 47 float maxValue_;
48 48
49 void ExtendImageRange(const Orthanc::ImageAccessor& slice); 49 void ExtendImageRange(const Orthanc::ImageAccessor& slice);
50 50
51 Orthanc::ImageAccessor GetAxialSliceAccessor(unsigned int slice, 51 Orthanc::ImageAccessor GetAxialSliceAccessor(unsigned int slice,
52 bool readOnly); 52 bool readOnly) const;
53 53
54 Orthanc::ImageAccessor GetCoronalSliceAccessor(unsigned int slice, 54 Orthanc::ImageAccessor GetCoronalSliceAccessor(unsigned int slice,
55 bool readOnly); 55 bool readOnly) const;
56 56
57 Orthanc::Image* ExtractSagittalSlice(unsigned int slice) const; 57 Orthanc::Image* ExtractSagittalSlice(unsigned int slice) const;
58 58
59 template <typename T> 59 template <typename T>
60 T GetPixelUnchecked(unsigned int x, 60 T GetPixelUnchecked(unsigned int x,
170 private: 170 private:
171 Orthanc::ImageAccessor accessor_; 171 Orthanc::ImageAccessor accessor_;
172 std::auto_ptr<Orthanc::Image> sagittal_; // Unused for axial and coronal 172 std::auto_ptr<Orthanc::Image> sagittal_; // Unused for axial and coronal
173 173
174 public: 174 public:
175 SliceReader(ImageBuffer3D& that, 175 SliceReader(const ImageBuffer3D& that,
176 VolumeProjection projection, 176 VolumeProjection projection,
177 unsigned int slice); 177 unsigned int slice);
178 178
179 const Orthanc::ImageAccessor& GetAccessor() const 179 const Orthanc::ImageAccessor& GetAccessor() const
180 { 180 {