diff Framework/Volumes/ImageBuffer3D.cpp @ 143:58c545177c1c wasm

optimization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 22 Jan 2018 15:16:19 +0100
parents 88bca952cb17
children a053ca7fa5c6
line wrap: on
line diff
--- a/Framework/Volumes/ImageBuffer3D.cpp	Fri Jan 19 18:12:42 2018 +0100
+++ b/Framework/Volumes/ImageBuffer3D.cpp	Mon Jan 22 15:16:19 2018 +0100
@@ -422,7 +422,7 @@
   }
 
 
-  uint8_t ImageBuffer3D::GetPixelGrayscale8(unsigned int x,
+  uint8_t ImageBuffer3D::GetVoxelGrayscale8(unsigned int x,
                                             unsigned int y,
                                             unsigned int z) const
   {
@@ -439,12 +439,11 @@
     }
 
     const void* p = image_.GetConstRow(y + height_ * (depth_ - 1 - z));
-
     return reinterpret_cast<const uint8_t*>(p) [x];
   }
 
 
-  uint16_t ImageBuffer3D::GetPixelGrayscale16(unsigned int x,
+  uint16_t ImageBuffer3D::GetVoxelGrayscale16(unsigned int x,
                                               unsigned int y,
                                               unsigned int z) const
   {
@@ -461,7 +460,6 @@
     }
 
     const void* p = image_.GetConstRow(y + height_ * (depth_ - 1 - z));
-
     return reinterpret_cast<const uint16_t*>(p) [x];
   }
 }