20 #ifndef PT_COLOR_LIKELIHOOD_H_
21 #define PT_COLOR_LIKELIHOOD_H_
32 #include <boost/shared_array.hpp>
48 size_t pixel_sampling = 1,
49 size_t frame_sampling = 1
52 m_pixel_ssz(pixel_sampling),
53 m_frame_ssz(frame_sampling)
71 void read_frames(
const std::vector<std::string>& frame_fps);
84 std::vector<Vector> get_foreground
90 std::vector<Vector> get_background
95 Matrix get_norm_hist_as_matrix
101 const std::pair<double, double>& range_1,
102 const std::pair<double, double>& range_2,
111 std::vector<boost::shared_array<float> > m_r_pixels;
112 std::vector<boost::shared_array<float> > m_g_pixels;
double operator()(const Scene &scene) const
Evaluate this likelihood at the given scene.
Definition for the Matrix class, a thin wrapper on the KJB Matrix struct and its related functionalit...
Class that represents an axis-aligned 2D rectangle. It is defined in terms of its (2D) center...
Definition: gr_2D_bounding_box.h:51
void set_bg_g_matrix(const Matrix *bg_g_p)
Definition: pt_color_likelihood.h:78
void read_frames(const std::vector< std::string > &frame_fps)
Definition: pt_color_likelihood.cpp:43
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
Color_likelihood(size_t pixel_sampling=1, size_t frame_sampling=1)
Definition: pt_color_likelihood.h:47
Code for a wrapper class around the C struct KJB_Filter.
Class that represents a target moving through space.
Definition: pt_target.h:50
Filter class.
Definition: i_filter.h:36
double at_box(const Body_2d &cur_b2d, const Body_2d &next_b2d, size_t cur_frame, size_t next_frame) const
Evaluate likelihood at a single box.
Definition: pt_color_likelihood.cpp:133
Class that represents color likelihood of a set of projected boxes given detections.
Definition: pt_color_likelihood.h:42
This class implements matrices, in the linear-algebra sense, with real-valued elements.
Definition: m_matrix.h:94
Definition for the Vector class, a thin wrapper on the KJB Vector struct and its related functionalit...
void set_bg_r_matrix(const Matrix *bg_r_p)
Definition: pt_color_likelihood.h:73
double at_trajectory(const Target &target) const
Evaluate likelihood at boxes of a trajectory.
Definition: pt_color_likelihood.cpp:106