#include <GaussianMixtureDistribution.h>
Public Member Functions | |
double | evaluate (boost::shared_ptr< ISM::Pose > pPose) |
GaussianMixtureDistribution (unsigned int pDimension) | |
void | initializeVisualizer (boost::shared_ptr< Visualization::ProbabilisticSecondarySceneObjectVisualization > pVisualizer) |
void | load (boost::property_tree::ptree &pPt, std::string pNode) |
void | visualize (boost::shared_ptr< Visualization::ProbabilisticSecondarySceneObjectVisualization > pVisualizer, boost::shared_ptr< ISM::Pose > pPose) |
~GaussianMixtureDistribution () | |
Private Member Functions | |
Eigen::VectorXd | getVectorFromObject (boost::shared_ptr< ISM::Pose > pPose) |
Private Attributes | |
unsigned int | mDimension |
std::vector< PSMInference::GaussianKernel > | mKernels |
A gaussian mixture distribution maintaining a list of weighted gaussian kernels.
Definition at line 42 of file GaussianMixtureDistribution.h.
ProbabilisticSceneRecognition::GaussianMixtureDistribution::GaussianMixtureDistribution | ( | unsigned int | pDimension | ) |
Constructor.
pDimension | The number of dimensions of the distribution. |
Definition at line 22 of file GaussianMixtureDistribution.cpp.
ProbabilisticSceneRecognition::GaussianMixtureDistribution::~GaussianMixtureDistribution | ( | ) |
Destructor.
Definition at line 27 of file GaussianMixtureDistribution.cpp.
double ProbabilisticSceneRecognition::GaussianMixtureDistribution::evaluate | ( | boost::shared_ptr< ISM::Pose > | pPose | ) |
Evaluate the gaussian mixture distribution with the given pose.
pPose | The pose to evaluate the gaussian mixture distribution with. |
Definition at line 58 of file GaussianMixtureDistribution.cpp.
|
private |
Converts the given pose into a 7D eigen Vector.
pPose | The pose to convert to a 7d vector. |
Definition at line 85 of file GaussianMixtureDistribution.cpp.
void ProbabilisticSceneRecognition::GaussianMixtureDistribution::initializeVisualizer | ( | boost::shared_ptr< Visualization::ProbabilisticSecondarySceneObjectVisualization > | pVisualizer | ) |
Initializes the visualization mechanism.
pVisualizer | The visualizer for the secondary scene object represented by this node. |
Definition at line 51 of file GaussianMixtureDistribution.cpp.
void ProbabilisticSceneRecognition::GaussianMixtureDistribution::load | ( | boost::property_tree::ptree & | pPt, |
std::string | pNode | ||
) |
Loads the working data from an XML file.
pPt | Data structure for performing XML operations. |
pNode | The name of the node that contains the distribution. |
Definition at line 31 of file GaussianMixtureDistribution.cpp.
void ProbabilisticSceneRecognition::GaussianMixtureDistribution::visualize | ( | boost::shared_ptr< Visualization::ProbabilisticSecondarySceneObjectVisualization > | pVisualizer, |
boost::shared_ptr< ISM::Pose > | pPose | ||
) |
Evaluates the gaussian mixture distribution for the given evidence and visualizes the result.
pVisualizer | The visualizer for the secondary scene object represented by this node. |
pPose | The pose to evaluate the gaussian mixture distribution with. |
Definition at line 74 of file GaussianMixtureDistribution.cpp.
|
private |
The number of dimensions of the distribution.
Definition at line 103 of file GaussianMixtureDistribution.h.
|
private |
The gaussian kernels (and weights) forming the gaussian mixture distribution.
Definition at line 108 of file GaussianMixtureDistribution.h.