EgoVideoStabilizer  1.0.0
image_reconstruction.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 IMAGE_RECONSTRUCTION_H
27 #define IMAGE_RECONSTRUCTION_H
28 
29 #include <stdio.h>
30 #include <iostream>
31 
32 #include <opencv2/core/core.hpp>
33 #include <opencv2/features2d/features2d.hpp>
34 #include <opencv2/highgui/highgui.hpp>
35 #include <opencv2/nonfree/nonfree.hpp>
36 #include <opencv2/calib3d/calib3d.hpp>
37 #include <opencv2/imgproc/imgproc.hpp>
38 #include <opencv2/photo/photo.hpp>
39 
40 #include "definitions/define.h"
42 
44 
45 #include "homography.h"
46 
63 bool imageReconstruction ( const cv::Mat &image , const int index , const EXPERIMENT &experiment_settings ,
64  const cv::Rect &frame_boundaries, cv::Mat &reconstructedImage ) ;
65 
83 bool reconstructImage (const cv::Mat &image , const cv::Mat &homography_matrix , const int index , const EXPERIMENT &experiment_settings ,
84  const cv::Rect &drop_boundaries, const cv::Rect &frame_boundaries , cv::Mat &reconstructed_image );
85 
87  PRE_AND_POS,//Reconstructs using both sides
88  ONLY_PRE,//Reconstructs using only the previous frames
89  ONLY_POS//Reconstructs using only the posterior frames
90 };
91 
92 #endif // IMAGE_RECONSTRUCTION_H
Header functions for the homography.cpp.
Fields declaration of the experiment settings.
bool reconstructImage(const cv::Mat &image, const cv::Mat &homography_matrix, const int index, const EXPERIMENT &experiment_settings, const cv::Rect &drop_boundaries, const cv::Rect &frame_boundaries, cv::Mat &reconstructed_image)
Function that reconstructs an image using panorama based on homography in a image sequence...
Definition: image_reconstruction.cpp:500
EXPERIMENT experiment_settings
Definition: main.cpp:59
Definition: image_reconstruction.h:87
bool imageReconstruction(const cv::Mat &image, const int index, const EXPERIMENT &experiment_settings, const cv::Rect &frame_boundaries, cv::Mat &reconstructedImage)
Function that reconstructs an image using panorama based on homography in a image sequence...
Definition: image_reconstruction.cpp:429
Definition: image_reconstruction.h:88
ReconstructionType
Definition: image_reconstruction.h:86
Definition: image_reconstruction.h:89
Definition: experiment_struct.h:32
Macro with specific codes.
Macros used in the code relate with debug/view flags and usual values.