KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
kjb::pt::Optical_flow_likelihood Class Reference

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_distributionx_dist () const
 Return the individual Laplace distribution for x. More...
 
const Laplace_distributiony_dist () const
 Return the individual Laplace distribution for y. More...
 
const Laplace_distributionbg_x_dist () const
 Return the individual Laplace distribution for x. More...
 
const Laplace_distributionbg_y_dist () const
 Return the individual Laplace distribution for y. More...
 

Detailed Description

Class to compute face optical flow likelihood.

Features are not copied, so they must remain in scope while this class is alive.

Constructor & Destructor Documentation

kjb::pt::Optical_flow_likelihood::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 
)
inline

Construct an OF likelihood with the given parameters.

Member Function Documentation

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.

const Laplace_distribution& kjb::pt::Optical_flow_likelihood::bg_x_dist ( ) const
inline

Return the individual Laplace distribution for x.

const Laplace_distribution& kjb::pt::Optical_flow_likelihood::bg_y_dist ( ) const
inline

Return the individual Laplace distribution for y.

double Optical_flow_likelihood::operator() ( const Scene scene) const

Evaluate this likelihood at the given scene.

const Laplace_distribution& kjb::pt::Optical_flow_likelihood::x_dist ( ) const
inline

Return the individual Laplace distribution for x.

const Laplace_distribution& kjb::pt::Optical_flow_likelihood::y_dist ( ) const
inline

Return the individual Laplace distribution for y.


The documentation for this class was generated from the following files: