Mercurial > hg > orthanc-wsi
comparison Framework/Inputs/SingleLevelDecodedPyramid.cpp @ 318:8ad12abde290
sparse re-encoding with OpenSlide (notably for MIRAX format)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 11 Sep 2024 16:11:16 +0200 |
parents | 0683312e21ba |
children | 9947e70cbcea |
comparison
equal
deleted
inserted
replaced
317:f611fb47d0e8 | 318:8ad12abde290 |
---|---|
29 #include <Images/ImageProcessing.h> | 29 #include <Images/ImageProcessing.h> |
30 | 30 |
31 namespace OrthancWSI | 31 namespace OrthancWSI |
32 { | 32 { |
33 void SingleLevelDecodedPyramid::ReadRegion(Orthanc::ImageAccessor& target, | 33 void SingleLevelDecodedPyramid::ReadRegion(Orthanc::ImageAccessor& target, |
34 bool& isEmpty, | |
34 unsigned int level, | 35 unsigned int level, |
35 unsigned int x, | 36 unsigned int x, |
36 unsigned int y) | 37 unsigned int y) |
37 { | 38 { |
39 isEmpty = false; | |
40 | |
38 Orthanc::ImageAccessor region; | 41 Orthanc::ImageAccessor region; |
39 image_.GetRegion(region, x, y, target.GetWidth(), target.GetHeight()); | 42 image_.GetRegion(region, x, y, target.GetWidth(), target.GetHeight()); |
40 Orthanc::ImageProcessing::Copy(target, region); | 43 Orthanc::ImageProcessing::Copy(target, region); |
41 } | 44 } |
42 | 45 |