Mercurial > hg > orthanc
diff Core/DicomFormat/DicomIntegerPixelAccessor.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/DicomIntegerPixelAccessor.cpp Mon Mar 07 08:29:22 2016 +0100 +++ b/Core/DicomFormat/DicomIntegerPixelAccessor.cpp Mon Mar 07 17:43:20 2016 +0100 @@ -54,8 +54,7 @@ size_(size) { frame_ = 0; - frameOffset_ = (information_.GetHeight() * information_.GetWidth() * - information_.GetBytesPerValue() * information_.GetChannelCount()); + frameOffset_ = information_.GetFrameSize(); if (information_.GetNumberOfFrames() * frameOffset_ > size) {