netatmo-algo/src/a2.cpp

26 lines
663 B
C++
Raw Normal View History

2022-02-16 13:59:14 +01:00
#include "a2.h"
2022-02-17 23:15:45 +01:00
#include <cassert>
2022-02-16 13:59:14 +01:00
namespace freling {
2022-02-17 23:15:45 +01:00
std::vector<BoundingBox> A2(const Frame& frame, const Mask& mask) {
assert((bool)"Not implemented\n" && false);
return {};
}
2022-02-16 13:59:14 +01:00
std::vector<BoundingBox> A2(const std::vector<BoundingBox>& regions) {
std::vector<BoundingBox> updated_boxes(regions.size());
for (int i = 0, size = regions.size(); i < size; ++i) {
auto& box = updated_boxes[i];
const auto& region = regions[i];
2022-02-16 19:16:17 +01:00
box.x = region.x + 10;
box.y = region.y + 10;
box.width = region.width - 20;
box.height = region.height - 20;
2022-02-16 13:59:14 +01:00
}
return updated_boxes;
}
} // namespace freling