diff Framework/Volumes/ImageBuffer3D.h @ 316:ce48c3b3b0e9

fix for new ImageAccessor API
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 08 Oct 2018 12:45:27 +0200
parents 5412adf19980
children 557c8ff1db5c
line wrap: on
line diff
--- a/Framework/Volumes/ImageBuffer3D.h	Mon Oct 01 10:46:26 2018 +0200
+++ b/Framework/Volumes/ImageBuffer3D.h	Mon Oct 08 12:45:27 2018 +0200
@@ -48,11 +48,13 @@
 
     void ExtendImageRange(const Orthanc::ImageAccessor& slice);
 
-    Orthanc::ImageAccessor GetAxialSliceAccessor(unsigned int slice,
-                                                 bool readOnly) const;
-
-    Orthanc::ImageAccessor GetCoronalSliceAccessor(unsigned int slice,
-                                                   bool readOnly) const;
+    void GetAxialSliceAccessor(Orthanc::ImageAccessor& target,
+                               unsigned int slice,
+                               bool readOnly) const;
+    
+    void GetCoronalSliceAccessor(Orthanc::ImageAccessor& target,
+                                 unsigned int slice,
+                                 bool readOnly) const;
 
     Orthanc::Image*  ExtractSagittalSlice(unsigned int slice) const;