EgoVideoStabilizer  1.0.0
sequence_processing.h
Go to the documentation of this file.
1 //
4 // SemanticFastForward_EPIC@ECCVW is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // SemanticFastForward_JVCI is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with SemanticFastForward_EPIC@ECCVW. If not, see <http://www.gnu.org/licenses/>.
16 //
18 
26 #ifndef SEQUENCE_PROCESSING_H
27 #define SEQUENCE_PROCESSING_H
28 
29 #include <stdio.h>
30 #include <iostream>
31 #include <fstream>
32 
33 #include <omp.h>
34 #include <armadillo>
35 
36 #include <opencv2/core/core.hpp>
37 #include <opencv2/features2d/features2d.hpp>
38 #include <opencv2/highgui/highgui.hpp>
39 #include <opencv2/nonfree/nonfree.hpp>
40 #include <opencv2/calib3d/calib3d.hpp>
41 #include <opencv2/imgproc/imgproc.hpp>
42 
44 
45 #include "file_operations.h"
46 
66 bool findIntermediateHomographyMatrix ( const int d , const int D , const int N ,
67  const cv::Mat& frame_i , const cv::Mat& frame_master_pre , const cv::Mat& frame_master_pos ,
68  cv::Mat& homography_matrix_result ) ;
69 
91 bool findIntermediateHomographyMatrix (const int d, const int D, const int N , const cv::Mat &frame_i ,
92  const std::vector<cv::KeyPoint> &keypoints_master_pre,
93  const std::vector<cv::KeyPoint> &keypoints_master_pos,
94  const cv::Mat &descriptors_master_pre,
95  const cv::Mat &descriptors_master_pos,
96  cv::Mat& homography_matrix_result );
97 
118 bool findIntermediateHomographyMatrix (const float s, const float S, const cv::Mat &frame_i ,
119  const std::vector<cv::KeyPoint> &keypoints_master_pre,
120  const std::vector<cv::KeyPoint> &keypoints_master_pos,
121  const cv::Mat &descriptors_master_pre,
122  const cv::Mat &descriptors_master_pos,
123  cv::Mat& homography_matrix_result);
124 
147 int selectNewFrame (const int d , const int D , const int N , const int index , const int index_previous , const int index_posterior ,
148  const std::vector<cv::KeyPoint> &keypoints_master_pre , const std::vector<cv::KeyPoint> &keypoints_master_pos , const cv::Mat &descriptors_master_pre, const cv::Mat &descriptors_master_pos, const cv::Rect &crop_area ,
149  const EXPERIMENT &experiment_settings , cv::Mat& new_frame );
150 
172 int selectNewFrame (const float s, const float S, const int index , const int index_previous , const int index_posterior ,
173  const std::vector<cv::KeyPoint> &keypoints_master_pre , const std::vector<cv::KeyPoint> &keypoints_master_pos , const cv::Mat &descriptors_master_pre, const cv::Mat &descriptors_master_pos, const cv::Rect& crop_area ,
174  const EXPERIMENT& experiment_settings , cv::Mat& new_frame );
175 
176 #endif // SEQUENCE_posCESSING_H
Fields declaration of the experiment settings.
Header functions for the file_operations.cpp.
EXPERIMENT experiment_settings
Definition: main.cpp:59
int selectNewFrame(const int d, const int D, const int N, const int index, const int index_previous, const int index_posterior, const std::vector< cv::KeyPoint > &keypoints_master_pre, const std::vector< cv::KeyPoint > &keypoints_master_pos, const cv::Mat &descriptors_master_pre, const cv::Mat &descriptors_master_pos, const cv::Rect &crop_area, const EXPERIMENT &experiment_settings, cv::Mat &new_frame)
Function that selects a new frame in the original video using the values of semantic information of t...
Definition: sequence_processing.cpp:406
bool findIntermediateHomographyMatrix(const int d, const int D, const int N, const cv::Mat &frame_i, const cv::Mat &frame_master_pre, const cv::Mat &frame_master_pos, cv::Mat &homography_matrix_result)
Function that calculates the homography matrix that leave the frame_i to the intermediate plan betwee...
Definition: sequence_processing.cpp:122
Definition: experiment_struct.h:32