diff OrthancStone/Sources/Loaders/SeriesFramesLoader.cpp @ 1564:e731e62692a9

upgrading Orthanc framework
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 17 Sep 2020 15:18:21 +0200
parents 244ad1e4e76a
children 85e117739eca
line wrap: on
line diff
--- a/OrthancStone/Sources/Loaders/SeriesFramesLoader.cpp	Fri Aug 21 21:57:54 2020 +0200
+++ b/OrthancStone/Sources/Loaders/SeriesFramesLoader.cpp	Thu Sep 17 15:18:21 2020 +0200
@@ -25,7 +25,7 @@
 #include "../Oracle/ParseDicomFromWadoCommand.h"
 
 #if ORTHANC_ENABLE_DCMTK == 1
-#  include <DicomParsing/Internals/DicomImageDecoder.h>
+#  include <DicomParsing/ParsedDicomFile.h>
 #endif
 
 #include <DicomFormat/DicomInstanceHasher.h>
@@ -170,9 +170,7 @@
     size_t frameIndex = frames_.GetFrameIndex(payload.GetSeriesIndex());
 
     std::unique_ptr<Orthanc::ImageAccessor> decoded;
-    decoded.reset(Orthanc::DicomImageDecoder::Decode(
-      dicom, 
-      static_cast<unsigned int>(frameIndex)));
+    decoded.reset(dicom.DecodeFrame(static_cast<unsigned int>(frameIndex)));
 
     if (decoded.get() == NULL)
     {