A drawable class to render a set of normal distributions as ellipsoids. This class efficiently perform ellipsoids mesh generation using GLSL compute shader and is much faster than the old implementation.
More...
#include <normal_distributions.hpp>
|
| | NormalDistributions (const float *means, const float *covs, int num_points, float sigma=1.0f) |
| | Constructor.
|
| template<typename T, int D> |
| | NormalDistributions (const Eigen::Matrix< T, D, 1 > *means, const Eigen::Matrix< T, D, D > *covs, int num_points, float sigma=1.0f) |
| | Constructor.
|
| template<typename T, int D, template< class > class Allocator> |
| | NormalDistributions (const std::vector< Eigen::Matrix< T, D, 1 >, Allocator< Eigen::Matrix< T, D, 1 > > > &means, const std::vector< Eigen::Matrix< T, D, D >, Allocator< Eigen::Matrix< T, D, D > > > &covs, float sigma=1.0f) |
| | Constructor.
|
| virtual | ~NormalDistributions () |
| virtual void | draw (glk::GLSLShader &shader) const override |
| virtual | ~Drawable () |
A drawable class to render a set of normal distributions as ellipsoids. This class efficiently perform ellipsoids mesh generation using GLSL compute shader and is much faster than the old implementation.
◆ NormalDistributions() [1/3]
| glk::NormalDistributions::NormalDistributions |
( |
const float * | means, |
|
|
const float * | covs, |
|
|
int | num_points, |
|
|
float | sigma = 1.0f ) |
Constructor.
- Parameters
-
| means | Means (4D vector). The 4th element is ignored. |
| covs | Covariances (4x4 matrix). The last row and column are ignored. |
| num_points | Number of normal distributions to render. |
| sigma | Size of the ellipsoids in standard deviations (e.g., 3.0 renders 3-sigma ellipsoids). |
◆ NormalDistributions() [2/3]
template<typename T, int D>
| glk::NormalDistributions::NormalDistributions |
( |
const Eigen::Matrix< T, D, 1 > * | means, |
|
|
const Eigen::Matrix< T, D, D > * | covs, |
|
|
int | num_points, |
|
|
float | sigma = 1.0f ) |
Constructor.
- Note
- Only T = float/double and D = 3/4 are supported. For D = 4, the 4th element of means and the last row and column of covs are ignored.
- Parameters
-
| means | Means |
| covs | Covariances |
| num_points | Number of normal distributions to render. |
| sigma | Size of the ellipsoids in standard deviations (e.g., 3.0 renders 3-sigma ellipsoids). |
◆ NormalDistributions() [3/3]
template<typename T, int D, template< class > class Allocator>
| glk::NormalDistributions::NormalDistributions |
( |
const std::vector< Eigen::Matrix< T, D, 1 >, Allocator< Eigen::Matrix< T, D, 1 > > > & | means, |
|
|
const std::vector< Eigen::Matrix< T, D, D >, Allocator< Eigen::Matrix< T, D, D > > > & | covs, |
|
|
float | sigma = 1.0f ) |
|
inline |
Constructor.
- Note
- Only T = float/double and D = 3/4 are supported. For D = 4, the 4th element of means and the last row and column of covs are ignored.
- Parameters
-
| means | Means |
| covs | Covariances (must have the same size as means) |
| sigma | Size of the ellipsoids in standard deviations (e.g., 3.0 renders 3-sigma ellipsoids). |
◆ ~NormalDistributions()
| virtual glk::NormalDistributions::~NormalDistributions |
( |
| ) |
|
|
virtual |
◆ draw()
| virtual void glk::NormalDistributions::draw |
( |
glk::GLSLShader & | shader | ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file: