diff Framework/Outputs/InMemoryTiledImage.cpp @ 228:c6e7dda9ac14

more reuse of Orthanc::ImageProcessing() toolbox
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 13 Jan 2021 17:21:31 +0100
parents 1e864138f0da
children 49f647ed1b4c
line wrap: on
line diff
--- a/Framework/Outputs/InMemoryTiledImage.cpp	Wed Jan 13 14:42:25 2021 +0100
+++ b/Framework/Outputs/InMemoryTiledImage.cpp	Wed Jan 13 17:21:31 2021 +0100
@@ -27,6 +27,8 @@
 #include <Compatibility.h>  // For std::unique_ptr
 #include <Logging.h>
 #include <OrthancException.h>
+#include <Images/Image.h>
+
 
 namespace OrthancWSI
 {
@@ -164,7 +166,7 @@
       Tiles::iterator it = tiles_.find(std::make_pair(tileX, tileY));
       if (it == tiles_.end())
       {
-        tiles_[std::make_pair(tileX, tileY)] = ImageToolbox::Clone(tile);
+        tiles_[std::make_pair(tileX, tileY)] = Orthanc::Image::Clone(tile);
       }
       else
       {
@@ -173,7 +175,7 @@
           delete it->second;
         }
 
-        it->second = ImageToolbox::Clone(tile);
+        it->second = Orthanc::Image::Clone(tile);
       }
     }
   }