comparison 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
comparison
equal deleted inserted replaced
317:f611fb47d0e8 318:8ad12abde290
238 238
239 for (unsigned int y = 0; y < height; y += pyramid.GetTileHeight(level)) 239 for (unsigned int y = 0; y < height; y += pyramid.GetTileHeight(level))
240 { 240 {
241 for (unsigned int x = 0; x < width; x += pyramid.GetTileWidth(level)) 241 for (unsigned int x = 0; x < width; x += pyramid.GetTileWidth(level))
242 { 242 {
243 bool isEmpty; // Unused in this case
243 std::unique_ptr<Orthanc::ImageAccessor> tile( 244 std::unique_ptr<Orthanc::ImageAccessor> tile(
244 pyramid.DecodeTile(level, 245 pyramid.DecodeTile(isEmpty, level,
245 x / pyramid.GetTileWidth(level), 246 x / pyramid.GetTileWidth(level),
246 y / pyramid.GetTileHeight(level))); 247 y / pyramid.GetTileHeight(level)));
247 Embed(*result, *tile, x, y); 248 Embed(*result, *tile, x, y);
248 } 249 }
249 } 250 }