EgoVideoStabilizer  1.0.0
master_frames.cpp File Reference

Functions to get the master frames from file or calculating it. More...

Include dependency graph for master_frames.cpp:

Functions

int length (int number)
 Function that counts the digits of the number. More...
 
std::vector< int > findMasterFrames (const EXPERIMENT &experiment_settings)
 Function that calculates the master frames in a sequence given a N in the field segmentSize in the experiment_settings in a non-parallel (sequential) way. More...
 
std::vector< int > findMasterFramesParallel (const EXPERIMENT &experiment_settings)
 Function that calculates the master frames in a sequence given a N in the field segmentSize in the experiment_settings in a parallel way. More...
 
std::vector< int > getMasterFrames (const EXPERIMENT experiment_settings, const int num_frames)
 Function that return the master frames in a sequence according with experiment settings, by load from a file or calculating them. More...
 

Detailed Description

Functions to get the master frames from file or calculating it.

Calculate master frames. Calculate master frames in a parallel way. Call file_operations.cpp methods to get read master frames from file.

Function Documentation

std::vector<int> findMasterFrames ( const EXPERIMENT experiment_settings)

Function that calculates the master frames in a sequence given a N in the field segmentSize in the experiment_settings in a non-parallel (sequential) way.

Parameters
experiment_settings- object with the experiment settings.
Returns
std::vector<int> - vector with the master frames found in the sequence.
Author
Michel Melo da Silva
Date
02/04/2016
std::vector<int> findMasterFramesParallel ( const EXPERIMENT experiment_settings)

Function that calculates the master frames in a sequence given a N in the field segmentSize in the experiment_settings in a parallel way.

Parameters
experiment_settings- object with the experiment settings.
Returns
std::vector<int> - vector with the master frames found in the sequence.
Author
Michel Melo da Silva
Date
03/04/2016
std::vector<int> getMasterFrames ( const EXPERIMENT  experiment_settings,
const int  num_frames 
)

Function that return the master frames in a sequence according with experiment settings, by load from a file or calculating them.

Parameters
experiment_settings- object with the experiment settings.
num_frames- number of frames of the reduced video.
Returns
std::vector<int> - vector with the master frames found in the sequence.
Author
Michel Melo da Silva
Date
04/04/2016
int length ( int  number)

Function that counts the digits of the number.

Parameters
number- number to calculate the number of digits.
Returns
int - number of digits of the input number.
Author
Michel Melo da Silva
Date
20/04/2016