diff Core/DicomFormat/DicomImageInformation.cpp @ 1924:6c73df12ca51

New URI: "/instances/.../frames/.../raw" to access the raw frames (bypass image decoding)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 07 Mar 2016 17:43:20 +0100
parents 5096681efce6
children a3a65de1840f
line wrap: on
line diff
--- a/Core/DicomFormat/DicomImageInformation.cpp	Mon Mar 07 08:29:22 2016 +0100
+++ b/Core/DicomFormat/DicomImageInformation.cpp	Mon Mar 07 17:43:20 2016 +0100
@@ -260,4 +260,13 @@
 
     return false;
   }
+
+
+  size_t DicomImageInformation::GetFrameSize() const
+  {
+    return (GetHeight() * 
+            GetWidth() * 
+            GetBytesPerValue() * 
+            GetChannelCount());
+  }
 }