Am5os
 All Classes Functions Pages
mp4_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 __amos_ss16_proj5__mp4_frame_selector__
25 #define __amos_ss16_proj5__mp4_frame_selector__
26 
27 #include <stdio.h>
28 #include <string>
29 #include "frame_selector.h"
30 #include <opencv2/opencv.hpp>
31 #include "mp4_image.h"
32 
34 
35 public:
36 
42  MP4FrameSelector(std::string file);
43 
48 
56  Image * ReadImage(unsigned int frame_index);
57 
58 
64  int GetImageCount();
65 
66 
67 private:
68 
69  std::string file_name_;
70  cv::VideoCapture cap; // The Video capture fore the video
71 };
72 
73 #endif /* defined(__amos_ss16_proj5__mp4_frame_selector__) */
Image * ReadImage(unsigned int frame_index)
Definition: mp4_frame_selector.cpp:37
int GetImageCount()
Definition: mp4_frame_selector.cpp:48
Definition: frame_selector.h:31
Definition: image.h:31
Definition: mp4_frame_selector.h:33
~MP4FrameSelector()
Definition: mp4_frame_selector.cpp:34
MP4FrameSelector(std::string file)
Definition: mp4_frame_selector.cpp:26