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): Thomas Mörwald , Michael Zillich , Andreas Richtsfeld , Johann Prankl , Markus Vincze , Bence Magyar
autogenerated on Wed Aug 26 2015 15:24:12