eos 1.4.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
eos::video::PoseBinningKeyframeSelector< ImageType > Struct Template Reference

A keyframe selection that selects keyframes according to yaw pose and score. More...

#include <Keyframe.hpp>

Public Member Functions

 PoseBinningKeyframeSelector (int frames_per_bin=2)
 
bool try_add (float frame_score, const ImageType &image, const fitting::FittingResult &fitting_result)
 
std::vector< Keyframe< ImageType > > get_keyframes () const
 

Detailed Description

template<class ImageType>
struct eos::video::PoseBinningKeyframeSelector< ImageType >

A keyframe selection that selects keyframes according to yaw pose and score.

Separates the +-90° yaw pose range into 20° intervals (i.e. 90 to 70, ..., -10 to 10, ...), and puts frames into each bin, until full. Replaces keyframes with better frames if the score is higher than that of current keyframes.

The yaw pose bins are currently hard-coded (9 bins, 20° intervals).

Constructor & Destructor Documentation

◆ PoseBinningKeyframeSelector()

template<class ImageType >
eos::video::PoseBinningKeyframeSelector< ImageType >::PoseBinningKeyframeSelector ( int  frames_per_bin = 2)
inline

Construct a pose-binning keyframe selector with frames_per_bin frames per bin.

Parameters
[in]frames_per_binThe number of frames per bin.

Member Function Documentation

◆ get_keyframes()

template<class ImageType >
std::vector< Keyframe< ImageType > > eos::video::PoseBinningKeyframeSelector< ImageType >::get_keyframes ( ) const
inline

Return the keyframes as a vector.

Returns
The keyframes as a vector.

◆ try_add()

template<class ImageType >
bool eos::video::PoseBinningKeyframeSelector< ImageType >::try_add ( float  frame_score,
const ImageType &  image,
const fitting::FittingResult fitting_result 
)
inline

Try to add the frame with the given score, and return whether the frame was added.

Parameters
[in]frame_scoreQuality score of the given image.
[in]imageThe image to potentially add.
[in]fitting_resultFitting result of the given image - used to compute the yaw angle.
Returns
Whether the given image has been added as a keyframe.

The documentation for this struct was generated from the following file: