Mercurial > hg > orthanc-wsi
comparison 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 |
comparison
equal
deleted
inserted
replaced
153:b798d200ac90 | 154:32a94bbb7d05 |
---|---|
66 } | 66 } |
67 | 67 |
68 unsigned int h = std::min(source.GetHeight(), target.GetHeight() - y); | 68 unsigned int h = std::min(source.GetHeight(), target.GetHeight() - y); |
69 unsigned int w = std::min(source.GetWidth(), target.GetWidth() - x); | 69 unsigned int w = std::min(source.GetWidth(), target.GetWidth() - x); |
70 | 70 |
71 Orthanc::ImageAccessor targetRegion = target.GetRegion(x, y, w, h); | 71 Orthanc::ImageAccessor targetRegion, sourceRegion; |
72 Orthanc::ImageAccessor sourceRegion = source.GetRegion(0, 0, w, h); | 72 target.GetRegion(targetRegion, x, y, w, h); |
73 source.GetRegion(sourceRegion, 0, 0, w, h); | |
74 | |
73 Orthanc::ImageProcessing::Copy(targetRegion, sourceRegion); | 75 Orthanc::ImageProcessing::Copy(targetRegion, sourceRegion); |
74 } | 76 } |
75 | 77 |
76 | 78 |
77 | 79 |