Skip to content

Commit

Permalink
factor: some benchmark tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AzHicham authored Jan 27, 2024
1 parent ed32077 commit 9dcad3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/philipsslide.cc
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ void ImageView::read_region(const std::unique_ptr<PhilipsEngine>& engine, const
const std::vector<std::vector<std::size_t>> view_range{
{request.roi.start_x, request.roi.end_x, request.roi.start_y, request.roi.end_y, request.level}};
auto const& envelopes = _view.dataEnvelopes(request.level);
auto regions = _view.requestRegions(view_range, envelopes, false, {254, 254, 254}, BufferType::RGB);
auto regions = _view.requestRegions(view_range, envelopes, true, {254, 254, 254}, BufferType::RGB);

auto regions_ready = engine.get()->inner()->waitAny(regions);
auto regions_ready = engine.get()->inner()->waitAll(regions);
auto region = regions_ready.front();

// compute image size
Expand Down

0 comments on commit 9dcad3e

Please sign in to comment.