add A2 stub

This commit is contained in:
Fabien Freling 2022-02-16 13:59:14 +01:00
parent 7d2b7b9ba7
commit 38e9a97a85
3 changed files with 55 additions and 1 deletions

17
src/a2.h Normal file
View file

@ -0,0 +1,17 @@
#pragma once
#include <vector>
#include "bounding_box.h"
namespace freling {
// The normal signature for this function should be:
// std::vector<BoundingBox> A2(const Frame& regions);
// However, since we are mocking this algorithm we just need to fulfill this
// constraint: "We assume for the sake of simplicity, that no bounding boxe
// in B overlaps more than one region in F Regions".
// To do so, we need to have the original delimitation of regions.
std::vector<BoundingBox> A2(const std::vector<BoundingBox>& regions);
} // namespace freling