23 #ifndef PT_BOX_LIKELIHOOD_H_
24 #define PT_BOX_LIKELIHOOD_H_
50 const std::string& dist_name = std::string(
"laplace")
52 noise_weight_(noise_weight),
53 image_width_(image_width),
54 image_height_(image_height),
55 m_dist_name(dist_name)
76 const std::string& type,
89 return noise_weight_ * (-std::log(image_width_)
90 - std::log(image_height_)
91 - std::log(image_height_));
101 const std::string& dist_name,
107 double noise_weight_;
109 double image_height_;
110 std::string m_dist_name;
Class that represents a detection bounding box from any source.
Definition: pt_detection_box.h:42
Class that represents an axis-aligned 2D rectangle. It is defined in terms of its (2D) center...
Definition: gr_2D_bounding_box.h:51
double at_target(const Target &target) const
Evaluate this log-likelihood on the given target.
Definition: pt_box_likelihood.cpp:74
double at_noise(const Scene &scene) const
Evaluate this log-likelihood on the given scene.
Definition: pt_box_likelihood.cpp:54
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
This class implements vectors, in the linear-algebra sense, with real-valued elements.
Definition: m_vector.h:87
double at_model(const Detection_box &dbox, const Body_2d &model) const
Evaluate this log-likelihood on the given frame.
Definition: pt_box_likelihood.cpp:111
Box_likelihood(double noise_weight, double image_width, double image_height, const std::string &dist_name=std::string("laplace"))
Definition: pt_box_likelihood.h:46
Class that represents a target moving through space.
Definition: pt_target.h:50
Class that represents likelihood of a set of projected boxes given. detections. At the moment it only...
Definition: pt_box_likelihood.h:42
double operator()(const Scene &scene) const
Evaluate this log-likelihood on the given scene.
Definition: pt_box_likelihood.cpp:41
void get_params(const std::string &type, Vector ¶ms_x, Vector ¶ms_top, Vector ¶ms_bot) const
Computes line paramters given type of box.
Definition: pt_box_likelihood.cpp:136
double at_frame(const Target &target, size_t frame) const
Evaluate this log-likelihood on the given frame.
Definition: pt_box_likelihood.cpp:91