Am5os
 All Classes Functions Pages
bayer_image.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 BAYERIMAGE_H
25 #define BAYERIMAGE_H
26 
27 
28 #include <opencv2/opencv.hpp>
29 #include "image.h"
30 
31 using namespace cv;
32 
33 class BayerImage : public Image{
34 
35 public:
36 
44  BayerImage(const std::string payload, int width, int height);
45 
49  ~BayerImage();
50 
56  std::string GetImagePayload();
57 
63  int GetImageWidth();
64 
70  int GetImageHeight();
71 
76  Mat GetRGBImage();
77 
78 
79 private:
80  std::string image_payload_;
81  int image_width_;
82  int image_height_;
83 };
84 
85 #endif //BAYERIMAGE_H
Definition: bayer_image.h:33
Definition: image.h:31