KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Typedefs | Functions
pt_util.h File Reference
#include <m_cpp/m_vector.h>
#include <people_tracking_cpp/pt_detection_box.h>
#include <people_tracking_cpp/pt_scene.h>
#include <people_tracking_cpp/pt_data.h>
#include <people_tracking_cpp/pt_association.h>
#include <people_tracking_cpp/pt_target.h>
#include <people_tracking_cpp/pt_box_trajectory.h>
#include <people_tracking_cpp/pt_visibility.h>
#include <flow_cpp/flow_integral_flow.h>
#include <gr_cpp/gr_2D_bounding_box.h>
#include <camera_cpp/perspective_camera.h>
#include <detector_cpp/d_bbox.h>
#include <detector_cpp/d_deva_detection.h>
#include <detector_cpp/d_deva_facemark.h>
#include <boost/optional.hpp>

Go to the source code of this file.

Classes

struct  kjb::pt::Propagated_2d_info
 Propagated 2D information using optical flow. More...
 
struct  kjb::pt::Comparator_2d
 Comparator for Propagated_2d_info. More...
 
class  kjb::pt::Feature_score
 

Namespaces

 kjb
 Classes and functions for dealing with trajectory files.
 
 kjb::pt
 

Typedefs

typedef std::map< const
Detection_box *, Matrix > 
kjb::pt::Hist_map
 Scores based on histogram. More...
 

Functions

void kjb::pt::standardize (Vector &v, double cam_width, double cam_height)
 Changes Vector to standard (camera) coordinate system. More...
 
void kjb::pt::standardize (Bbox &box, double cam_width, double cam_height)
 Changes box coordinates to standard (camera) coordinate system. More...
 
void kjb::pt::standardize (Deva_facemark &face, double cam_width, double cam_height)
 Changes box coordinates to standard (camera) coordinate system. More...
 
void kjb::pt::unstandardize (Vector &v, double cam_width, double cam_height)
 Changes vector to unstandard (image) coordinate system. More...
 
void kjb::pt::unstandardize (Bbox &box, double cam_width, double cam_height)
 Changes box coordinates to unstandard (image) coordinate system. More...
 
void kjb::pt::unstandardize (Deva_facemark &face, double cam_width, double cam_height)
 Changes Deva_facemark coordinates to unstandard (image) coordinate system. More...
 
Ascn kjb::pt::make_gt_association (const Box_data &data, const Box_trajectory_map &gt_btrajs, double width, double height, boost::optional< const Perspective_camera & > cam_p=boost::none, boost::optional< const Facemark_data & > fm_data_p=boost::none)
 Create data from GT box trajectories and compute association based upon it. More...
 
Box_data kjb::pt::make_gt_data (const Box_trajectory_map &gt_btrajs, double width, double height)
 Create data from GT box trajectories and compute association based upon it. More...
 
std::map< int, std::vector
< Propagated_2d_info > > 
kjb::pt::propagate_boxes_by_flow (const Target &target, const std::vector< Integral_flow > &x_flows, const std::vector< Integral_flow > &y_flows, const std::vector< Integral_flow > &back_x_flows, const std::vector< Integral_flow > &back_y_flows, size_t duration)
 Propagate the detection boxes based on optical flow to neighboring frames. More...
 
double kjb::pt::chi_squared_dist_to_prob (double chi_square_dist)
 Given the chi-square distance between the histograms of two detection boxes. More...
 
Vector kjb::pt::average_box_flow (const Integral_flow &fx, const Integral_flow &fy, const Bbox &box, const Visibility &vis)
 Compute the average flow in a box, ignoring occluded parts. More...
 
void kjb::pt::prune_by_height (std::vector< Deva_detection > &deva_boxes, double image_width, double image_height, const Perspective_camera &camera, double average_height)
 Prune the deva boxes based on the average entity height. More...
 
Vector kjb::pt::project_point (const Perspective_camera &cam, const Vector &x)
 Projects a 3D point into a 2D point using camera. More...
 
void kjb::pt::update_facemarks (const Ascn &ascn, const Facemark_data &fms)
 Update facemark detections for face trajectories. More...
 
void kjb::pt::clear_facemarks (const Ascn &ascn)
 Update facemark detections for face trajectories. More...