EgoVideoStabilizer  1.0.0
image_reconstruction.h File Reference

Header functions for the image_reconstruction.cpp. More...

#include <stdio.h>
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/nonfree/nonfree.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/photo/photo.hpp>
#include "definitions/define.h"
#include "definitions/experiment_struct.h"
#include "executables/execute_commands.h"
#include "homography.h"
Include dependency graph for image_reconstruction.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  ReconstructionType { PRE_AND_POS, ONLY_PRE, ONLY_POS }
 

Functions

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. More...
 
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. More...
 

Detailed Description

Header functions for the image_reconstruction.cpp.

Enumeration Type Documentation

Enumerator
PRE_AND_POS 
ONLY_PRE 
ONLY_POS 

Function Documentation

bool imageReconstruction ( const cv::Mat &  image,
const int  index,
const EXPERIMENT experiment_settings,
const cv::Rect &  frame_boundaries,
cv::Mat &  reconstructed_image 
)

Function that reconstructs an image using panorama based on homography in a image sequence.

Parameters
image- image initial with homography transformation.
index- index of the initial image in the original video.
experiment_settings- object with the experiment settings.
frame_boundaries- limits of the frame that needs to be filled by the reconstructed image.
reconstructed_image- object to save the final reconstructed image.
Returns
bool true - if the frame was successful reconstructed filling all the frame limit.
bool false - if the frame was not successful reconstructed filling all the frame limit.
Author
Michel Melo da Silva
Date
14/04/2016
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.

Parameters
image- image initial without homography transformation.
homography_matrix- homography matrix that will be applied to the original image where the reconstruct will start.
index- index of the initial image in the original video.
experiment_settings- object with the experiment settings.
frame_boundaries- limits of the frame that needs to be filled by the reconstructed image.
reconstructed_image- object to save the final reconstructed image.
Returns
bool true - if the frame was successful reconstructed filling all the frame limit.
bool false - if the frame was not successful reconstructed filling all the frame limit.
Author
Michel Melo da Silva
Date
14/04/2016