Mercurial > hg > orthanc-wsi
diff Framework/ImageToolbox.cpp @ 154:32a94bbb7d05
merge
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 08 Oct 2018 12:12:39 +0200 |
parents | a0f9a3df1110 |
children | 6b8ccfc02051 |
line wrap: on
line diff
--- a/Framework/ImageToolbox.cpp Fri Jul 27 14:06:26 2018 +0200 +++ b/Framework/ImageToolbox.cpp Mon Oct 08 12:12:39 2018 +0200 @@ -68,8 +68,10 @@ unsigned int h = std::min(source.GetHeight(), target.GetHeight() - y); unsigned int w = std::min(source.GetWidth(), target.GetWidth() - x); - Orthanc::ImageAccessor targetRegion = target.GetRegion(x, y, w, h); - Orthanc::ImageAccessor sourceRegion = source.GetRegion(0, 0, w, h); + Orthanc::ImageAccessor targetRegion, sourceRegion; + target.GetRegion(targetRegion, x, y, w, h); + source.GetRegion(sourceRegion, 0, 0, w, h); + Orthanc::ImageProcessing::Copy(targetRegion, sourceRegion); }