Am5os
 All Classes Functions Pages
frame_detection_data.h
1 
2 // Projectname: amos-ss16-proj5
3 //
4 // Created on 02.06.2016.
5 // Copyright (c) 2016 de.fau.cs.osr.amos2016.gruppe5
6 //
7 // This file is part of the AMOS Project 2016 @ FAU
8 // (Friedrich-Alexander University Erlangen-Nürnberg)
9 //
10 // This program is free software: you can redistribute it and/or modify
11 // it under the terms of the GNU Affero General Public License as
12 // published by the Free Software Foundation, either version 3 of the
13 // License, or (at your option) any later version.
14 //
15 // This program is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU Affero General Public License for more details.
19 //
20 // You should have received a copy of the GNU Affero General Public
21 // License along with this program. If not, see
22 // <http://www.gnu.org/licenses/>.
23 //
24 
25 #ifndef FRAME_DETECTION_DATA_H
26 #define FRAME_DETECTION_DATA_H
27 
28 
29 //std
30 #include <vector>
31 #include <map>
32 #include <string>
33 
34 //local
35 #include "element.h"
36 
37 // enum for the types of detected objects
38 enum ObjectType { OBJECT_HUMAN = 0, OBJECT_VEHICLE = 1 };
39 
40 
42 
43 public:
44 
52  std::vector<Element> GetElementsOfType(ObjectType type);
53 
61  void AddElementsOfType(ObjectType type, std::vector<Element> elements);
62 
63 
64 private:
65  std::map<ObjectType, std::vector<Element> > all_elements_;
66 };
67 
68 
69 #endif // FRAME_DETECTION_DATA_H
Definition: frame_detection_data.h:41
std::vector< Element > GetElementsOfType(ObjectType type)
Definition: frame_detection_data.cpp:28
void AddElementsOfType(ObjectType type, std::vector< Element > elements)
Definition: frame_detection_data.cpp:36