Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

pf_skeleton_tracker< _state_type, observation_type > Class Template Reference

#include <pf_skeleton_tracker.h>

List of all members.

Public Types

typedef _state_type state_type

Public Member Functions

 pf_skeleton_tracker (const options &opts, calibration &_calib, const bool _playback=false)
 ~pf_skeleton_tracker ()
bool refresh ()
calibrationget_calibration ()
void prepare_mesh ()
void show () const
const state_typeget_pose_estimate ()
const observation_type & get_observation () const

Protected Member Functions

double measure_hypothesis (state_type &state, const observation_type &observation)
void compute_mode ()

Protected Attributes

calibrationcalib
observation_type observation
const std::string output_directory
const std::string mean_file
const std::string validation_file
const bool playback
state_type m
measure< state_type,
observation_type > 
meas
FILE * mean_fid
mocap_data< observation_type > mocap
FILE * validation_fid
std::ofstream state_log

Detailed Description

template<class _state_type, class observation_type>
class pf_skeleton_tracker< _state_type, observation_type >

An implementation of a tracker using particle filters.


Member Typedef Documentation

template<class _state_type , class observation_type >
typedef _state_type pf_skeleton_tracker< _state_type, observation_type >::state_type

Constructor & Destructor Documentation

template<class _state_type , class observation_type >
pf_skeleton_tracker< _state_type, observation_type >::pf_skeleton_tracker ( const options opts,
calibration _calib,
const bool  _playback = false 
) [inline]
Parameters:
[in] opts Options for determining run-time behaviour of the tracker.
[in] Relationship between different coordinate systems used in the tracker.
[in] Wether the tracker should perform tracking or play-back previous results.
template<class _state_type , class observation_type >
pf_skeleton_tracker< _state_type, observation_type >::~pf_skeleton_tracker (  )  [inline]

Member Function Documentation

template<class _state_type , class observation_type >
void pf_skeleton_tracker< _state_type, observation_type >::compute_mode (  )  [inline, protected]
template<class _state_type , class observation_type >
calibration& pf_skeleton_tracker< _state_type, observation_type >::get_calibration (  )  [inline]
Returns:
The calibration information about different coordinate systems.
template<class _state_type , class observation_type >
const observation_type& pf_skeleton_tracker< _state_type, observation_type >::get_observation (  )  const [inline]
Returns:
The current observation data.
template<class _state_type , class observation_type >
const state_type& pf_skeleton_tracker< _state_type, observation_type >::get_pose_estimate (  )  [inline]
Returns:
The current pose estimate.
template<class _state_type , class observation_type >
double pf_skeleton_tracker< _state_type, observation_type >::measure_hypothesis ( state_type state,
const observation_type &  observation 
) [inline, protected]
template<class _state_type , class observation_type >
void pf_skeleton_tracker< _state_type, observation_type >::prepare_mesh (  )  [inline]

Recompute mesh if the mean pose has changed.

template<class _state_type , class observation_type >
bool pf_skeleton_tracker< _state_type, observation_type >::refresh (  )  [inline]

Go to the next frame.

Returns:
TRUE on succes; FALSE on failures or at the end of the sequence.
template<class _state_type , class observation_type >
void pf_skeleton_tracker< _state_type, observation_type >::show (  )  const [inline]

Show the tracking state in 3D.


Member Data Documentation

template<class _state_type , class observation_type >
calibration& pf_skeleton_tracker< _state_type, observation_type >::calib [protected]
template<class _state_type , class observation_type >
state_type pf_skeleton_tracker< _state_type, observation_type >::m [protected]
template<class _state_type , class observation_type >
FILE* pf_skeleton_tracker< _state_type, observation_type >::mean_fid [protected]
template<class _state_type , class observation_type >
const std::string pf_skeleton_tracker< _state_type, observation_type >::mean_file [protected]
template<class _state_type , class observation_type >
measure<state_type, observation_type> pf_skeleton_tracker< _state_type, observation_type >::meas [protected]
template<class _state_type , class observation_type >
mocap_data<observation_type> pf_skeleton_tracker< _state_type, observation_type >::mocap [protected]
template<class _state_type , class observation_type >
observation_type pf_skeleton_tracker< _state_type, observation_type >::observation [protected]
template<class _state_type , class observation_type >
const std::string pf_skeleton_tracker< _state_type, observation_type >::output_directory [protected]
template<class _state_type , class observation_type >
const bool pf_skeleton_tracker< _state_type, observation_type >::playback [protected]
template<class _state_type , class observation_type >
std::ofstream pf_skeleton_tracker< _state_type, observation_type >::state_log [protected]
template<class _state_type , class observation_type >
FILE* pf_skeleton_tracker< _state_type, observation_type >::validation_fid [protected]
template<class _state_type , class observation_type >
const std::string pf_skeleton_tracker< _state_type, observation_type >::validation_file [protected]

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