Mercurial > hg > orthanc-stone
comparison Framework/Volumes/ImageBuffer3D.h @ 735:c3bbb130abc4
removing dependencies in ImageBuffer3D
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 21 May 2019 16:15:06 +0200 |
parents | be3671662eec |
children | f6438fdc447e |
comparison
equal
deleted
inserted
replaced
734:be3671662eec | 735:c3bbb130abc4 |
---|---|
20 | 20 |
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "../StoneEnumerations.h" | 24 #include "../StoneEnumerations.h" |
25 #include "../Toolbox/ParallelSlices.h" | 25 #include "../Toolbox/LinearAlgebra.h" |
26 #include "../Toolbox/VolumeImageGeometry.h" | |
27 | 26 |
28 #include <Core/Images/Image.h> | 27 #include <Core/Images/Image.h> |
29 | 28 |
30 namespace OrthancStone | 29 namespace OrthancStone |
31 { | 30 { |
32 class ImageBuffer3D : public boost::noncopyable | 31 class ImageBuffer3D : public boost::noncopyable |
33 { | 32 { |
34 private: | 33 private: |
35 VolumeImageGeometry geometry_; // TODO => Move this out of this class | |
36 Orthanc::Image image_; | 34 Orthanc::Image image_; |
37 Orthanc::PixelFormat format_; | 35 Orthanc::PixelFormat format_; |
38 unsigned int width_; | 36 unsigned int width_; |
39 unsigned int height_; | 37 unsigned int height_; |
40 unsigned int depth_; | 38 unsigned int depth_; |
74 unsigned int depth, | 72 unsigned int depth, |
75 bool computeRange); | 73 bool computeRange); |
76 | 74 |
77 void Clear(); | 75 void Clear(); |
78 | 76 |
79 VolumeImageGeometry& GetGeometry() | |
80 { | |
81 return geometry_; | |
82 } | |
83 | |
84 const VolumeImageGeometry& GetGeometry() const | |
85 { | |
86 return geometry_; | |
87 } | |
88 | |
89 const Orthanc::ImageAccessor& GetInternalImage() const | 77 const Orthanc::ImageAccessor& GetInternalImage() const |
90 { | 78 { |
91 return image_; | 79 return image_; |
92 } | 80 } |
93 | 81 |
109 Orthanc::PixelFormat GetFormat() const | 97 Orthanc::PixelFormat GetFormat() const |
110 { | 98 { |
111 return format_; | 99 return format_; |
112 } | 100 } |
113 | 101 |
114 // TODO - Remove | |
115 ParallelSlices* GetGeometry(VolumeProjection projection) const; | |
116 | |
117 uint64_t GetEstimatedMemorySize() const; | 102 uint64_t GetEstimatedMemorySize() const; |
118 | 103 |
119 bool GetRange(float& minValue, | 104 bool GetRange(float& minValue, |
120 float& maxValue) const; | 105 float& maxValue) const; |
121 | 106 |