Mercurial > hg > orthanc-stone
comparison Framework/Volumes/ImageBuffer3D.h @ 139:22628d37ef5c wasm
ImageBuffer3D::GetPixelGrayscale16
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 16 Jan 2018 17:44:16 +0100 |
parents | e2fe9352f240 |
children | 88bca952cb17 |
comparison
equal
deleted
inserted
replaced
138:77c4fef7f4a5 | 139:22628d37ef5c |
---|---|
67 | 67 |
68 // Set the geometry of the first axial slice (i.e. the one whose | 68 // Set the geometry of the first axial slice (i.e. the one whose |
69 // depth == 0) | 69 // depth == 0) |
70 void SetAxialGeometry(const CoordinateSystem3D& geometry); | 70 void SetAxialGeometry(const CoordinateSystem3D& geometry); |
71 | 71 |
72 const CoordinateSystem3D& GetAxialGeometry() const | |
73 { | |
74 return axialGeometry_; | |
75 } | |
76 | |
72 void SetVoxelDimensions(double x, | 77 void SetVoxelDimensions(double x, |
73 double y, | 78 double y, |
74 double z); | 79 double z); |
75 | 80 |
76 Vector GetVoxelDimensions(VolumeProjection projection); | 81 Vector GetVoxelDimensions(VolumeProjection projection) const; |
77 | 82 |
78 void GetSliceSize(unsigned int& width, | 83 void GetSliceSize(unsigned int& width, |
79 unsigned int& height, | 84 unsigned int& height, |
80 VolumeProjection projection); | 85 VolumeProjection projection); |
81 | 86 |
97 Orthanc::PixelFormat GetFormat() const | 102 Orthanc::PixelFormat GetFormat() const |
98 { | 103 { |
99 return format_; | 104 return format_; |
100 } | 105 } |
101 | 106 |
102 ParallelSlices* GetGeometry(VolumeProjection projection); | 107 ParallelSlices* GetGeometry(VolumeProjection projection) const; |
103 | 108 |
104 uint64_t GetEstimatedMemorySize() const; | 109 uint64_t GetEstimatedMemorySize() const; |
105 | 110 |
106 bool GetRange(float& minValue, | 111 bool GetRange(float& minValue, |
107 float& maxValue) const; | 112 float& maxValue) const; |
108 | 113 |
109 bool FitWindowingToRange(RenderStyle& style, | 114 bool FitWindowingToRange(RenderStyle& style, |
110 const DicomFrameConverter& converter) const; | 115 const DicomFrameConverter& converter) const; |
116 | |
117 uint16_t GetPixelGrayscale16(unsigned int x, | |
118 unsigned int y, | |
119 unsigned int z) const; | |
111 | 120 |
112 | 121 |
113 class SliceReader : public boost::noncopyable | 122 class SliceReader : public boost::noncopyable |
114 { | 123 { |
115 private: | 124 private: |