KJB
|
Class to compute face optical flow likelihood. More...
#include <pt_optical_flow_likelihood.h>
Public Member Functions | |
Optical_flow_likelihood (const std::vector< Integral_flow > &flows_x, const std::vector< Integral_flow > &flows_y, double img_width, double img_height, double x_scale, double y_scale, double bg_x_scale, double bg_y_scale) | |
Construct an OF likelihood with the given parameters. More... | |
double | operator() (const Scene &scene) const |
Evaluate this likelihood at the given scene. More... | |
double | at_trajectory (const Target &target) const |
Evaluate likelihood at boxes of a trajectory. More... | |
double | at_box (const Body_2d &b2d, size_t cur_frame) const |
Evaluate likelihood at a single box. More... | |
const Laplace_distribution & | x_dist () const |
Return the individual Laplace distribution for x. More... | |
const Laplace_distribution & | y_dist () const |
Return the individual Laplace distribution for y. More... | |
const Laplace_distribution & | bg_x_dist () const |
Return the individual Laplace distribution for x. More... | |
const Laplace_distribution & | bg_y_dist () const |
Return the individual Laplace distribution for y. More... | |
Class to compute face optical flow likelihood.
Features are not copied, so they must remain in scope while this class is alive.
|
inline |
Construct an OF likelihood with the given parameters.
double Optical_flow_likelihood::at_box | ( | const Body_2d & | b2d, |
size_t | cur_frame | ||
) | const |
Evaluate likelihood at a single box.
double Optical_flow_likelihood::at_trajectory | ( | const Target & | target | ) | const |
Evaluate likelihood at boxes of a trajectory.
|
inline |
Return the individual Laplace distribution for x.
|
inline |
Return the individual Laplace distribution for y.
double Optical_flow_likelihood::operator() | ( | const Scene & | scene | ) | const |
Evaluate this likelihood at the given scene.
|
inline |
Return the individual Laplace distribution for x.
|
inline |
Return the individual Laplace distribution for y.