Am5os
 All Classes Functions Pages
detection.h
1 //
2 // Projectname: amos-ss16-proj5
3 //
4 // Copyright (c) 2016 de.fau.cs.osr.amos2016.gruppe5
5 //
6 // This file is part of the AMOS Project 2016 @ FAU
7 // (Friedrich-Alexander University Erlangen-Nürnberg)
8 //
9 // This program is free software: you can redistribute it and/or modify
10 // it under the terms of the GNU Affero General Public License as
11 // published by the Free Software Foundation, either version 3 of the
12 // License, or (at your option) any later version.
13 //
14 // This program is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU Affero General Public License for more details.
18 //
19 // You should have received a copy of the GNU Affero General Public
20 // License along with this program. If not, see
21 // <http://www.gnu.org/licenses/>.
22 //
23 
24 #ifndef DETECTION_H
25 #define DETECTION_H
26 
27 // opencv
28 #include <opencv2/opencv.hpp>
29 
30 //local
31 #include "../StreamDecoder/image.h"
32 #include "../StreamDecoder/image_view.h"
33 #include "detector.h"
34 #include "frame_detection_data.h"
35 
36 const double default_contrast_value = 3.0;
37 const int default_brightness_value = 50;
38 
39 class Detection {
40 
41 public:
42 
49  Detection(Detector * peopleDetector, Detector * vehicleDetector);
50 
55  ~Detection();
56 
66 
67 private:
68 
69  Detector * people_detector_;
70  Detector * vehicle_detector_;
71  ImageView * image_view_;
72 
80  cv::Mat ResizeFrame(cv::Mat *frame);
81 
91  cv::Mat AdjustContrastAndBrightness(cv::Mat *frame, double contrastValue, int brightnessValue);
92 
93 
101  cv::Mat AdjustContrastAndBrightness(cv::Mat *frame);
102 
103 };
104 
105 
106 #endif // DETECTION_H
Definition: frame_detection_data.h:41
Definition: detection.h:39
Definition: detector.h:30
~Detection()
Definition: detection.cpp:38
Definition: image.h:31
Definition: image_view.h:32
FrameDetectionData * ProcessFrame(Image *image)
Definition: detection.cpp:43
Detection(Detector *peopleDetector, Detector *vehicleDetector)
Definition: detection.cpp:31