Mercurial > hg > orthanc-wsi
comparison Framework/Inputs/SingleLevelDecodedPyramid.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 |
---|---|
30 void SingleLevelDecodedPyramid::ReadRegion(Orthanc::ImageAccessor& target, | 30 void SingleLevelDecodedPyramid::ReadRegion(Orthanc::ImageAccessor& target, |
31 unsigned int level, | 31 unsigned int level, |
32 unsigned int x, | 32 unsigned int x, |
33 unsigned int y) | 33 unsigned int y) |
34 { | 34 { |
35 Orthanc::ImageAccessor region = image_.GetRegion(x, y, target.GetWidth(), target.GetHeight()); | 35 Orthanc::ImageAccessor region; |
36 image_.GetRegion(region, x, y, target.GetWidth(), target.GetHeight()); | |
36 ImageToolbox::Copy(target, region); | 37 ImageToolbox::Copy(target, region); |
37 } | 38 } |
38 | 39 |
39 | 40 |
40 unsigned int SingleLevelDecodedPyramid::GetLevelWidth(unsigned int level) const | 41 unsigned int SingleLevelDecodedPyramid::GetLevelWidth(unsigned int level) const |