eos 1.4.0
|
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 |
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).
|
inline |
Construct a pose-binning keyframe selector with frames_per_bin
frames per bin.
[in] | frames_per_bin | The number of frames per bin. |
|
inline |
Return the keyframes as a vector.
|
inline |
Try to add the frame with the given score, and return whether the frame was added.
[in] | frame_score | Quality score of the given image. |
[in] | image | The image to potentially add. |
[in] | fitting_result | Fitting result of the given image - used to compute the yaw angle. |