KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions
pt_scene.h File Reference
#include <people_tracking_cpp/pt_association.h>
#include <people_tracking_cpp/pt_target.h>
#include <people_tracking_cpp/pt_data.h>
#include <camera_cpp/perspective_camera.h>
#include <string>
#include <iterator>
#include <boost/format.hpp>

Go to the source code of this file.

Classes

class  kjb::pt::Scene
 Class that represents a full scene in the PT universe. More...
 
class  kjb::pt::Scene_recorder
 Record a series of scenes to a directory. More...
 
class  kjb::pt::Write_scene_iterator
 Record a series of scenes to a directory. More...
 
struct  kjb::pt::Write_scene_iterator::container_type
 Fake container type. Needed for recorder to find the type. More...
 

Namespaces

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

Functions

void kjb::pt::swap (Scene &s1, Scene &s2)
 Swap two scenes. More...
 
size_t kjb::pt::dims (const Scene &scene, bool respect_changed=true, bool infer_head=true)
 Computes the number of variables in this scene. More...
 
void kjb::pt::update_scene_state (const Scene &scene, const Facemark_data &fmdata, bool infer_head=true, bool refine=true)
 Update the (mostly) 3D state of a scene. To be called after an association change. More...
 
void kjb::pt::read_scene (Scene &s, const std::string &tracks_dp, const std::string &ass_fp, const std::string &cam_fp, const std::string &params_fp, bool infer_head=true)
 Read a scene. More...
 
void kjb::pt::read_scene (Scene &scene, const std::string &tracks_dp, bool infer_head=true)
 Read a scene using standard subdirectory structure; e.g., the association is read from "association.txt". More...
 
void kjb::pt::write_scene (const Scene &s, const std::string &tracks_dp, const std::string &ass_fp, const std::string &cam_fp, const std::string &params_fp)
 Write a scene. More...
 
void kjb::pt::write_scene (const Scene &scene, const std::string &tracks_dp)
 Write a scene using standard subdirectory structure; e.g., the association is written to "association.txt". More...
 
void kjb::pt::set_trajectory_at_frame (const Scene &scene, const Target &target, size_t frame, const Vector3 &v, bool vis_off, bool infer_head=true)
 Function that changes a single trajectory at a single frame, and performs all the necessary updates. More...
 
void kjb::pt::set_trajectories_at_frames (const Scene &scene, const Target &target1, const Target &target2, size_t frame1, size_t frame2, const Vector3 &v1, const Vector3 &v2, bool vis_off, bool infer_head=true)
 Function that changes a pair of trajectories at a pair of frames, and performs all the necessary updates. More...
 
void kjb::pt::move_trajectory_at_frame (const Scene &scene, const Target &target, size_t frame, const Vector3 &dv, bool vis_off, bool infer_head=true)
 Function that moves a single trajectory at a single frame, and performs all the necessary updates. More...
 
void kjb::pt::move_trajectories_at_frames (const Scene &scene, const Target &target1, const Target &target2, size_t frame1, size_t frame2, const Vector3 &dv1, const Vector3 &dv2, bool vis_off, bool infer_head=true)
 Function that moves a pair of trajectories at a pair of frames, and performs all the necessary updates. More...
 
void kjb::pt::set_trajectory_dir_at_frame (const Scene &scene, const Target &target, size_t frame, double dir, bool vis_off)
 Function that changes a single direction at a single frame, and performs all the necessary updates. More...
 
void kjb::pt::set_trajectory_dirs_at_frames (const Scene &scene, const Target &target1, const Target &target2, size_t frame1, size_t frame2, double dir1, double dir2, bool vis_off)
 Function that changes a pair of directions at a pair of frames, and performs all the necessary updates. More...
 
void kjb::pt::move_trajectory_dir_at_frame (const Scene &scene, const Target &target, size_t frame, double dd, bool vis_off)
 Function that moves a single direction at a single frame, and performs all the necessary updates. More...
 
void kjb::pt::move_trajectory_dirs_at_frames (const Scene &scene, const Target &target1, const Target &target2, size_t frame1, size_t frame2, double dd1, double dd2, bool vis_off)
 Function that moves a pair of directions at a pair of frames, and performs all the necessary updates. More...
 
void kjb::pt::set_trajectory_face_dir_at_frame (const Scene &scene, const Target &target, size_t frame, const Vector2 &dir, bool vis_off)
 Function that changes a single face direction at a single frame, and performs all the necessary updates. More...
 
void kjb::pt::set_trajectory_face_dirs_at_frames (const Scene &scene, const Target &target1, const Target &target2, size_t frame1, size_t frame2, const Vector2 &dir1, const Vector2 &dir2, bool vis_off)
 Function that changes a pair of face directions at a pair of frames, and performs all the necessary updates. More...
 
void kjb::pt::move_trajectory_face_dir_at_frame (const Scene &scene, const Target &target, size_t frame, const Vector2 &dd, bool vis_off)
 Function that moves a single face direction at a single frame, and performs all the necessary updates. More...
 
void kjb::pt::move_trajectory_face_dirs_at_frames (const Scene &scene, const Target &target1, const Target &target2, size_t frame1, size_t frame2, const Vector2 &dd1, const Vector2 &dd2, bool vis_off)
 Function that moves a pair of directions at a pair of frames, and performs all the necessary updates. More...
 
void kjb::pt::update_body_model_directions (const Target &target, size_t frame, const Perspective_camera &cam)
 Helper function for the set_trajectory_* functions. More...
 
void kjb::pt::update_face_model_directions (const Target &target, size_t frame, const Perspective_camera &cam)
 Helper function for the set_trajectory_* functions. More...
 
void kjb::pt::update_model_directions (const Target &target, size_t frame, const Perspective_camera &cam)
 Helper function for the set_trajectory_* functions. More...