map regions in origin
This commit is contained in:
parent
38e9a97a85
commit
4447cd67d1
7 changed files with 82 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue