# HG changeset patch # User Sebastien Jodogne # Date 1495182797 -7200 # Node ID 16e45af17a4d7ecb12872b10d4cc8c4826c172f6 # Parent fd5869e3ed5e08306514ad27e7c6061c7216902d Ability to retrieve raw frames encoded as unsigned 32-bits integers diff -r fd5869e3ed5e -r 16e45af17a4d Core/DicomFormat/DicomImageInformation.cpp --- a/Core/DicomFormat/DicomImageInformation.cpp Wed May 17 22:05:34 2017 +0200 +++ b/Core/DicomFormat/DicomImageInformation.cpp Fri May 19 10:33:17 2017 +0200 @@ -200,13 +200,6 @@ throw OrthancException(ErrorCode_NotImplemented); } - if (bitsAllocated_ > 32 || - bitsStored_ >= 32) - { - // Not available, as the accessor internally uses int32_t values - throw OrthancException(ErrorCode_NotImplemented); - } - if (samplesPerPixel_ == 0) { throw OrthancException(ErrorCode_NotImplemented); diff -r fd5869e3ed5e -r 16e45af17a4d Core/DicomFormat/DicomIntegerPixelAccessor.cpp --- a/Core/DicomFormat/DicomIntegerPixelAccessor.cpp Wed May 17 22:05:34 2017 +0200 +++ b/Core/DicomFormat/DicomIntegerPixelAccessor.cpp Fri May 19 10:33:17 2017 +0200 @@ -54,6 +54,13 @@ pixelData_(pixelData), size_(size) { + if (information_.GetBitsAllocated() > 32 || + information_.GetBitsStored() >= 32) + { + // Not available, as the accessor internally uses int32_t values + throw OrthancException(ErrorCode_NotImplemented); + } + frame_ = 0; frameOffset_ = information_.GetFrameSize(); diff -r fd5869e3ed5e -r 16e45af17a4d NEWS --- a/NEWS Wed May 17 22:05:34 2017 +0200 +++ b/NEWS Fri May 19 10:33:17 2017 +0200 @@ -14,6 +14,7 @@ Maintenance ----------- +* Ability to retrieve raw frames encoded as unsigned 32-bits integers * Fix issue 35 (AET name is not transferred to Orthanc using DCMTK 3.6.0)