map regions in origin

This commit is contained in:
Fabien Freling 2022-02-16 19:16:17 +01:00
parent 38e9a97a85
commit 4447cd67d1
7 changed files with 82 additions and 12 deletions

View file

@ -7,10 +7,10 @@ std::vector<BoundingBox> A2(const std::vector<BoundingBox>& regions) {
for (int i = 0, size = regions.size(); i < size; ++i) {
auto& box = updated_boxes[i];
const auto& region = regions[i];
box.x = region.x + 2;
box.y = region.y + 2;
box.width = region.width - 4;
box.height = region.height - 4;
box.x = region.x + 10;
box.y = region.y + 10;
box.width = region.width - 20;
box.height = region.height - 20;
}
return updated_boxes;
}