#include <grabcut.h>
Public Member Functions | |
void | add (const Color &c) |
Add a color sample. | |
void | fit (Gaussian &g, std::size_t total_count, bool compute_eigens=false) const |
Build the gaussian out of all the added color samples. | |
GaussianFitter (float epsilon=0.0001) | |
float | getEpsilon () |
void | setEpsilon (float epsilon) |
Private Attributes | |
Eigen::Matrix3f | accumulator_ |
matrix of products (i.e. r*r, r*g, r*b), some values are duplicated. | |
uint32_t | count_ |
count of color samples added to the gaussian | |
float | epsilon_ |
small value to add to covariance matrix diagonal to avoid singular values | |
Eigen::Vector3f | sum_ |
sum of r,g, and b |
pcl::segmentation::grabcut::GaussianFitter::GaussianFitter | ( | float | epsilon = 0.0001 | ) | [inline] |
void pcl::segmentation::grabcut::GaussianFitter::add | ( | const Color & | c | ) |
Add a color sample.
Definition at line 546 of file grabcut.cpp.
void pcl::segmentation::grabcut::GaussianFitter::fit | ( | Gaussian & | g, |
std::size_t | total_count, | ||
bool | compute_eigens = false |
||
) | const |
Build the gaussian out of all the added color samples.
Definition at line 558 of file grabcut.cpp.
float pcl::segmentation::grabcut::GaussianFitter::getEpsilon | ( | ) | [inline] |
void pcl::segmentation::grabcut::GaussianFitter::setEpsilon | ( | float | epsilon | ) | [inline] |
Eigen::Matrix3f pcl::segmentation::grabcut::GaussianFitter::accumulator_ [private] |
uint32_t pcl::segmentation::grabcut::GaussianFitter::count_ [private] |
float pcl::segmentation::grabcut::GaussianFitter::epsilon_ [private] |
Eigen::Vector3f pcl::segmentation::grabcut::GaussianFitter::sum_ [private] |