diff Plugins/Samples/GdcmDecoder/GdcmImageDecoder.cpp @ 1836:2faa2abbf311

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 27 Nov 2015 17:40:25 +0100
parents b1a6f49b21dd
children 859224214616
line wrap: on
line diff
--- a/Plugins/Samples/GdcmDecoder/GdcmImageDecoder.cpp	Fri Nov 27 12:54:54 2015 +0100
+++ b/Plugins/Samples/GdcmDecoder/GdcmImageDecoder.cpp	Fri Nov 27 17:40:25 2015 +0100
@@ -222,6 +222,30 @@
   }
 
 
+  double GdcmImageDecoder::GetSlope() const
+  {
+    return pimpl_->GetImage().GetSlope();
+  }
+
+
+  double GdcmImageDecoder::GetIntercept() const
+  {
+    return pimpl_->GetImage().GetIntercept();
+  }
+
+
+  double GdcmImageDecoder::GetColumnPixelSpacing() const
+  {
+    return pimpl_->GetImage().GetSpacing(1);
+  }
+
+
+  double GdcmImageDecoder::GetRowPixelSpacing() const
+  {
+    return pimpl_->GetImage().GetSpacing(0);
+  }
+
+
   size_t GdcmImageDecoder::GetBytesPerPixel(OrthancPluginPixelFormat format)
   {
     switch (format)