Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes

pik_stick_state< observation_type > Class Template Reference

#include <pik_stick_state.h>

Inheritance diagram for pik_stick_state< observation_type >:
angle_state< observation_type > skeleton_state< observation_type > state< observation_type >

List of all members.

Public Member Functions

 pik_stick_state (const options &opts, const calibration &_calib, const bool _for_show=true)
double predict (const observation_type &observation, const double variance_scale=1.0)
pik_stick_stateoperator= (pik_stick_state &new_state)
bool load (const std::string filename)
bool load (std::ifstream &file)

Protected Member Functions

void stick_motion (const observation_type &observation)
void set_end_effectors (const std::vector< vector3 > &data)
void get_end_effectors (std::vector< vector3 > &data)

Protected Attributes

size_t num_end_effectors
std::vector< double > lambda
std::vector< vector3end_effectors

Static Protected Attributes

static const double sigma = 0.0001

Detailed Description

template<class observation_type>
class pik_stick_state< observation_type >

An implementation of the Probabilistic Inverse Kinematics prior for object interaction. If you use this class we recommend citing

 @article {hauberg:ijcv11,
  author = {S{\o}ren Hauberg and Kim Steenstrup Pedersen},
  title = {{Predicting Articulated Human Motion from Spatial Processes}},
  journal = {International Journal of Computer Vision},
  publisher = {Springer},
  pages = {317--334},
  volume = {94},
  issue = {3},
  year = {2011}
 }

Constructor & Destructor Documentation

template<class observation_type >
pik_stick_state< observation_type >::pik_stick_state ( const options opts,
const calibration _calib,
const bool  _for_show = true 
) [inline]

Member Function Documentation

template<class observation_type >
void pik_stick_state< observation_type >::get_end_effectors ( std::vector< vector3 > &  data  )  [inline, protected]
template<class observation_type >
bool pik_stick_state< observation_type >::load ( std::ifstream &  file  )  [inline]

Load pose parameters from a stream. This is useful for batch loads.

Parameters:
[in] file A stream representing the open file.
Returns:
TRUE on succes.

Reimplemented from angle_state< observation_type >.

template<class observation_type >
bool pik_stick_state< observation_type >::load ( const std::string  filename  )  [inline]

Load pose parameters from a file.

Parameters:
[in] filename The name of the file containing the pose paramters.
Returns:
TRUE on succes.

Reimplemented from angle_state< observation_type >.

template<class observation_type >
pik_stick_state& pik_stick_state< observation_type >::operator= ( pik_stick_state< observation_type > &  new_state  )  [inline]
template<class observation_type >
double pik_stick_state< observation_type >::predict ( const observation_type &  observation,
const double  variance_scale = 1.0 
) [inline, virtual]

The importance distribution of the tracker.

Parameters:
[in] observation The current observation.
[in] variance_scale A scale factor for the default variance. This is used for annealed filters.
Returns:
The correction factor for the importance distribution (most often 1).

Reimplemented from angle_state< observation_type >.

template<class observation_type >
void pik_stick_state< observation_type >::set_end_effectors ( const std::vector< vector3 > &  data  )  [inline, protected]
template<class observation_type >
void pik_stick_state< observation_type >::stick_motion ( const observation_type &  observation  )  [inline, protected]

Member Data Documentation

template<class observation_type >
std::vector<vector3> pik_stick_state< observation_type >::end_effectors [protected]
template<class observation_type >
std::vector<double> pik_stick_state< observation_type >::lambda [protected]
template<class observation_type >
size_t pik_stick_state< observation_type >::num_end_effectors [protected]
template<class observation_type >
const double pik_stick_state< observation_type >::sigma = 0.0001 [static, protected]

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