diff 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
line wrap: on
line diff
--- a/Framework/Volumes/ImageBuffer3D.h	Tue Jan 16 13:47:54 2018 +0100
+++ b/Framework/Volumes/ImageBuffer3D.h	Tue Jan 16 17:44:16 2018 +0100
@@ -69,11 +69,16 @@
     // depth == 0)
     void SetAxialGeometry(const CoordinateSystem3D& geometry);
 
+    const CoordinateSystem3D& GetAxialGeometry() const
+    {
+      return axialGeometry_;
+    }
+
     void SetVoxelDimensions(double x,
                             double y,
                             double z);
 
-    Vector GetVoxelDimensions(VolumeProjection projection);
+    Vector GetVoxelDimensions(VolumeProjection projection) const;
 
     void GetSliceSize(unsigned int& width,
                       unsigned int& height,
@@ -99,7 +104,7 @@
       return format_;
     }
 
-    ParallelSlices* GetGeometry(VolumeProjection projection);
+    ParallelSlices* GetGeometry(VolumeProjection projection) const;
     
     uint64_t GetEstimatedMemorySize() const;
 
@@ -109,6 +114,10 @@
     bool FitWindowingToRange(RenderStyle& style,
                              const DicomFrameConverter& converter) const;
 
+    uint16_t GetPixelGrayscale16(unsigned int x,
+                                 unsigned int y,
+                                 unsigned int z) const;
+
 
     class SliceReader : public boost::noncopyable
     {