myPredictor.cpp
Go to the documentation of this file.
00001 
00002 #include <blort/Tracker/myPredictor.h>
00003 
00004 using namespace Tracking;
00005 
00006 
00007 void myPredictor::sampleFromGaussian(Distribution& d, int num_particles, Particle mean, Particle variance, float sigma){
00008         Particle p;
00009         Particle epsilon;
00010         
00011         for(int i=0; i<num_particles; i++){
00012                 
00013                 p = mean;
00014                 
00015                 epsilon = genNoise(sigma, variance);
00016                 
00017                 p.Translate( m_cam_view.x * p.z, m_cam_view.y * p.z, m_cam_view.z * p.z);
00018                 
00019                 d.push_back(p);
00020                 
00021                 
00022         }       
00023 }


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Thu Jan 2 2014 11:38:25