Mercurial > hg > orthanc-wsi
diff Framework/ImageToolbox.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 | 429c4efa1fde |
line wrap: on
line diff
--- a/Framework/ImageToolbox.cpp Wed Sep 11 13:43:39 2024 +0200 +++ b/Framework/ImageToolbox.cpp Wed Sep 11 16:11:16 2024 +0200 @@ -240,8 +240,9 @@ { for (unsigned int x = 0; x < width; x += pyramid.GetTileWidth(level)) { + bool isEmpty; // Unused in this case std::unique_ptr<Orthanc::ImageAccessor> tile( - pyramid.DecodeTile(level, + pyramid.DecodeTile(isEmpty, level, x / pyramid.GetTileWidth(level), y / pyramid.GetTileHeight(level))); Embed(*result, *tile, x, y);