9 #include "boundingBox.hpp"
11 #include <aliceVision/types.hpp>
21 PanoramaMap(
int width,
int height,
int scale,
int borderSize)
22 : _panoramaWidth(width),
23 _panoramaHeight(height),
25 _borderSize(borderSize)
30 bool getOverlaps(std::vector<IndexT>& overlaps, IndexT reference)
const;
32 bool getOverlaps(std::vector<IndexT>& overlaps,
const BoundingBox& referenceBoundingBox)
const;
34 int getWidth()
const {
return _panoramaWidth; }
36 int getHeight()
const {
return _panoramaHeight; }
38 size_t getScale()
const {
return _scale; }
40 size_t getBorderSize()
const {
return _borderSize; }
42 bool getBoundingBox(
BoundingBox& bb,
const IndexT&
id)
const
44 if (_map.find(
id) == _map.end())
54 bool getIntersectionsList(std::vector<BoundingBox>& intersections,
55 std::vector<BoundingBox>& currentBoundingBoxes,
56 const IndexT& referenceIndex,
57 const IndexT& otherIndex)
const;
59 bool getIntersectionsList(std::vector<BoundingBox>& intersections,
60 std::vector<BoundingBox>& currentBoundingBoxes,
62 const IndexT& otherIndex)
const;
64 bool optimizeChunks(std::vector<std::vector<IndexT>>& chunks,
int chunkSize);
70 std::map<IndexT, BoundingBox> _map;