diff Core/ImageFormats/ImageAccessor.h @ 983:80d4f1618b33 plugins

Sample plugin to replace DCMTK by GDCM when decoding images
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 01 Jul 2014 12:01:58 +0200
parents 87791ebc1f50
children 6e7e5ed91c2d
line wrap: on
line diff
--- a/Core/ImageFormats/ImageAccessor.h	Mon Jun 30 17:44:38 2014 +0200
+++ b/Core/ImageFormats/ImageAccessor.h	Tue Jul 01 12:01:58 2014 +0200
@@ -62,6 +62,11 @@
       return format_;
     }
 
+    unsigned int GetBytesPerPixel() const
+    {
+      return ::Orthanc::GetBytesPerPixel(format_);
+    }
+
     unsigned int GetWidth() const
     {
       return width_;