23 #ifndef PT_OPTICAL_FLOW_LIKELIHOOD_H
24 #define PT_OPTICAL_FLOW_LIKELIHOOD_H
49 const std::vector<Integral_flow>& flows_x,
50 const std::vector<Integral_flow>& flows_y,
62 m_x_dist(0.0, x_scale),
63 m_y_dist(0.0, y_scale),
64 m_bg_x_dist(0.0, bg_x_scale),
65 m_bg_y_dist(0.0, bg_y_scale)
91 const std::vector<Integral_flow>& m_flows_x;
92 const std::vector<Integral_flow>& m_flows_y;
const Laplace_distribution & bg_y_dist() const
Return the individual Laplace distribution for y.
Definition: pt_optical_flow_likelihood.h:87
Definition of various standard probability distributions.
const Laplace_distribution & x_dist() const
Return the individual Laplace distribution for x.
Definition: pt_optical_flow_likelihood.h:78
Class to compute face optical flow likelihood.
Definition: pt_optical_flow_likelihood.h:43
double operator()(const Scene &scene) const
Evaluate this likelihood at the given scene.
Definition: pt_optical_flow_likelihood.cpp:41
Class that represents a full scene in the PT universe.
Definition: pt_scene.h:40
2D body information resulting from projecting the 3D body.
Definition: pt_body_2d.h:35
const Laplace_distribution & bg_x_dist() const
Return the individual Laplace distribution for x.
Definition: pt_optical_flow_likelihood.h:84
double at_box(const Body_2d &b2d, size_t cur_frame) const
Evaluate likelihood at a single box.
Definition: pt_optical_flow_likelihood.cpp:72
boost::math::laplace Laplace_distribution
Definition: prob_distribution.h:67
Class that represents a target moving through space.
Definition: pt_target.h:50
const Laplace_distribution & y_dist() const
Return the individual Laplace distribution for y.
Definition: pt_optical_flow_likelihood.h:81
double at_trajectory(const Target &target) const
Evaluate likelihood at boxes of a trajectory.
Definition: pt_optical_flow_likelihood.cpp:54
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.
Definition: pt_optical_flow_likelihood.h:48