Am5os
 All Classes Functions Pages
hdf5_frame_selector.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 HDF5FRAME_SELECTOR_H
25 #define HDF5FRAME_SELECTOR_H
26 
27 // HDFReader
28 #include "hdf_reader.h"
29 
30 //Protobuf Deserializer
31 #include "protobuf_image_wrapper.h"
32 
33 // Image
34 #include "bayer_image.h"
35 
36 //Superclass FrameSelector
37 #include "frame_selector.h"
38 
39 #include <vector>
40 
41 
43 
44 public:
45 
51  HDF5FrameSelector(std::string file);
52 
57 
65  Image * ReadImage(unsigned int frame_index);
66 
67 
73  int GetImageCount();
74 
75 
81  std::vector<BayerImage> * ReadAllImages();
82 
83 private:
84 
85  std::string file_name_;
86  HDFReader *hdf_reader_;
87 
95  unsigned char* ConvertProtobufFileToArray(std::vector<int64_t> file);
96 };
97 
98 #endif // HDF5FRAME_SELECTOR_H
Definition: hdf_reader.h:48
HDF5FrameSelector(std::string file)
Definition: hdf5_frame_selector.cpp:40
std::vector< BayerImage > * ReadAllImages()
Definition: hdf5_frame_selector.cpp:88
Definition: frame_selector.h:31
Definition: image.h:31
Definition: hdf5_frame_selector.h:42
Image * ReadImage(unsigned int frame_index)
Definition: hdf5_frame_selector.cpp:58
int GetImageCount()
Definition: hdf5_frame_selector.cpp:84
~HDF5FrameSelector()
Definition: hdf5_frame_selector.cpp:52