Public Member Functions | Protected Attributes

angle_bgsub_state< observation_type > Class Template Reference

#include <angle_bgsub_state.h>

Inheritance diagram for angle_bgsub_state< observation_type >:
skeleton_state< observation_type > state< observation_type >

List of all members.

Public Member Functions

 angle_bgsub_state (const options &opts, const calibration &_calib, const bool _for_show=true)
double predict (const observation_type &observation, const double variance_scale=1.0)
angle_bgsub_stateoperator= (angle_bgsub_state &new_state)
bool load (const std::string filename)
bool load (std::ifstream &file)
void write_to_log (std::ofstream &file) const

Protected Attributes

solver_type::vector_type prev_theta
const double pred_noise
const von_mises noise
const bool extrapolate
size_t num_rejections

Detailed Description

template<class observation_type>
class angle_bgsub_state< observation_type >

An implementation of prior with Gaussian distributed joint angles constrained by an observed silhoute. If you use this class we recommend citing

 @inproceedings{hauberg:emmcvpr11,
  author    = {S{\o}ren Hauberg and Kim Steenstrup Pedersen},
  booktitle = {Energy Minimization Methods in Computer Vision and Pattern Recognition},
  editor    = {Yuri Boykov and others},
  pages     = {},
  publisher = {Springer},
  series    = {Lecture Notes in Computer Science},
  title     = {{Data-Driven Importance Distributions for Articulated Tracking}},
  year      = {2011}
 }

Constructor & Destructor Documentation

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

Member Function Documentation

template<class observation_type >
bool angle_bgsub_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 skeleton_state< observation_type >.

template<class observation_type >
bool angle_bgsub_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 skeleton_state< observation_type >.

template<class observation_type >
angle_bgsub_state& angle_bgsub_state< observation_type >::operator= ( angle_bgsub_state< observation_type > &  new_state  )  [inline]
template<class observation_type >
double angle_bgsub_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).

Implements state< observation_type >.

template<class observation_type >
void angle_bgsub_state< observation_type >::write_to_log ( std::ofstream &  file  )  const [inline]

Write relevant state information to the log.

Parameters:
[in] file The stream of the log file.

Reimplemented from state< observation_type >.


Member Data Documentation

template<class observation_type >
const bool angle_bgsub_state< observation_type >::extrapolate [protected]
template<class observation_type >
const von_mises angle_bgsub_state< observation_type >::noise [protected]
template<class observation_type >
size_t angle_bgsub_state< observation_type >::num_rejections [protected]
template<class observation_type >
const double angle_bgsub_state< observation_type >::pred_noise [protected]
template<class observation_type >
solver_type::vector_type angle_bgsub_state< observation_type >::prev_theta [protected]

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