KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Friends | List of all members
kjb::pt::Target Class Reference

Class that represents a target moving through space. More...

#include <pt_target.h>

Inheritance diagram for kjb::pt::Target:
kjb::mcmcda::Generic_track< Detection_box >

Public Types

typedef Detection_box Element
 
- Public Types inherited from kjb::mcmcda::Generic_track< Detection_box >
typedef Detection_box Element
 
typedef Parent::iterator iterator
 
typedef Parent::const_iterator const_iterator
 
typedef Parent::reverse_iterator reverse_iterator
 
typedef
Parent::const_reverse_iterator 
const_reverse_iterator
 
typedef Parent::value_type value_type
 
typedef Parent::key_type key_type
 
typedef Parent::mapped_type mapped_type
 
typedef Parent::reference reference
 
typedef Parent::const_reference const_reference
 

Public Member Functions

 Target (double height, double width, double girth, size_t vlen)
 Construct a target with the given height. More...
 
Trajectorytrajectory () const
 Get this target's current 3D positions. More...
 
Body_2d_trajectorybody_trajectory () const
 Get this target's current 2D body trajectory. More...
 
Face_2d_trajectoryface_trajectory () const
 Get this target's current 2D body trajectory. More...
 
const Gpp & pos_prior () const
 Returns the prior distribution used to evaluate this target. More...
 
const Gpp & dir_prior () const
 Returns the prior distribution used to evaluate this target. More...
 
const Gpp & fdir_prior () const
 Returns the prior distribution used to evaluate this target. More...
 
void set_unchanged () const
 Set changed flags to unchanged. More...
 
void set_changed_all () const
 Set changed flags to unchanged. More...
 
bool changed () const
 Return true if this target has changed. More...
 
void estimate_trajectory (const Perspective_camera &cam, double nsx=0.01, double nsz=1.0) const
 Fix trajectory to match track. More...
 
void estimate_trajectory (const Perspective_camera &cam, 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 frame_rate, double nsx=0.01, double nsz=1.0) const
 Fix trajectory to match track. More...
 
void estimate_height (const Perspective_camera &cam) const
 Estimate height from boxes and camera. More...
 
void refine_trajectory (const Perspective_camera &cam) const
 Refine trajectory estimate using facemark information. More...
 
void estimate_directions (bool infer_head=true, double nsb=0.1, double nsf=0.1) const
 Estimate directions. More...
 
void update_pos_gp (double sc, double sv) const
 Updates internal distribution and caching mechanism. More...
 
void update_dir_gp (double sc, double sv) const
 Updates internal distribution and caching mechanism. More...
 
void update_fdir_gp (double sc, double sv) const
 Updates internal distribution and caching mechanism. More...
 
void update_boxes (const Perspective_camera &cam) const
 Update box trajectory. More...
 
void update_faces (const Perspective_camera &cam) const
 Update face trajectory. More...
 
Vectorhessian_diagonal () const
 Updates internal distribution and caching mechanism. More...
 
- Public Member Functions inherited from kjb::mcmcda::Generic_track< Detection_box >
 Generic_track ()
 Constructor. More...
 
 Generic_track (Iterator first, Iterator last)
 Range constructor. More...
 
int get_start_time () const
 Gets start time of track. More...
 
int get_end_time () const
 Gets end time of track. More...
 
int get_nth_time (int n) const
 Gets nth time of track. More...
 
int get_random_time () const
 Gets a random time from track. More...
 
int get_next_time (int t) const
 Given a time, gets next time. More...
 
int get_previous_time (int t) const
 Given a time, gets previous time. More...
 
const Elementget_start_point () const
 Gets start point of track. More...
 
const Elementget_end_point () const
 Gets end point of track. More...
 
size_t real_size () const
 Get "real" size; i.e., number of frames with detections. More...
 
int changed_start () const
 Returns changed start flag. More...
 
int changed_end () const
 Returns changed end flag. More...
 
void set_changed_start (int f) const
 Set the changed flag of this track. More...
 
void set_changed_end (int f) const
 Set the changed flag of this track. More...
 
bool is_valid (double v_bar, int d_bar, double sg, const typename Data< Element >::Convert &to_vector) const
 Determines whether this track is valid. More...
 

Friends

void swap (Target &t1, Target &t2)
 Efficiently swap two targets. More...
 

Detailed Description

Class that represents a target moving through space.

Member Typedef Documentation

Constructor & Destructor Documentation

kjb::pt::Target::Target ( double  height,
double  width,
double  girth,
size_t  vlen 
)
inline

Construct a target with the given height.

Member Function Documentation

Body_2d_trajectory& kjb::pt::Target::body_trajectory ( ) const
inline

Get this target's current 2D body trajectory.

bool kjb::pt::Target::changed ( ) const
inline

Return true if this target has changed.

const Gpp& kjb::pt::Target::dir_prior ( ) const
inline

Returns the prior distribution used to evaluate this target.

void Target::estimate_directions ( bool  infer_head = true,
double  nsb = 0.1,
double  nsf = 0.1 
) const

Estimate directions.

void Target::estimate_height ( const Perspective_camera cam) const

Estimate height from boxes and camera.

void Target::estimate_trajectory ( const Perspective_camera cam,
double  nsx = 0.01,
double  nsz = 1.0 
) const

Fix trajectory to match track.

void Target::estimate_trajectory ( const Perspective_camera cam,
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  frame_rate,
double  nsx = 0.01,
double  nsz = 1.0 
) const

Fix trajectory to match track.

Face_2d_trajectory& kjb::pt::Target::face_trajectory ( ) const
inline

Get this target's current 2D body trajectory.

const Gpp& kjb::pt::Target::fdir_prior ( ) const
inline

Returns the prior distribution used to evaluate this target.

Vector& kjb::pt::Target::hessian_diagonal ( ) const
inline

Updates internal distribution and caching mechanism.

const Gpp& kjb::pt::Target::pos_prior ( ) const
inline

Returns the prior distribution used to evaluate this target.

void Target::refine_trajectory ( const Perspective_camera cam) const

Refine trajectory estimate using facemark information.

void kjb::pt::Target::set_changed_all ( ) const
inline

Set changed flags to unchanged.

void kjb::pt::Target::set_unchanged ( ) const
inline

Set changed flags to unchanged.

Trajectory& kjb::pt::Target::trajectory ( ) const
inline

Get this target's current 3D positions.

void Target::update_boxes ( const Perspective_camera cam) const

Update box trajectory.

void kjb::pt::Target::update_dir_gp ( double  sc,
double  sv 
) const
inline

Updates internal distribution and caching mechanism.

void Target::update_faces ( const Perspective_camera cam) const

Update face trajectory.

void kjb::pt::Target::update_fdir_gp ( double  sc,
double  sv 
) const
inline

Updates internal distribution and caching mechanism.

void kjb::pt::Target::update_pos_gp ( double  sc,
double  sv 
) const
inline

Updates internal distribution and caching mechanism.

Friends And Related Function Documentation

void swap ( Target t1,
Target t2 
)
friend

Efficiently swap two targets.


The documentation for this class was generated from the following files: