Public Member Functions | Private Attributes
pcl::segmentation::grabcut::GaussianFitter Class Reference

#include <grabcut.h>

List of all members.

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

Detailed Description

Helper class that fits a single Gaussian to color samples

Definition at line 260 of file grabcut.h.


Constructor & Destructor Documentation

pcl::segmentation::grabcut::GaussianFitter::GaussianFitter ( float  epsilon = 0.0001) [inline]

Definition at line 263 of file grabcut.h.


Member Function Documentation

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.

Returns:
epsilon

Definition at line 278 of file grabcut.h.

set epsilon which will be added to the covariance matrix diagonal which avoids singular covariance matrix

Parameters:
[in]epsilonuser defined epsilon

Definition at line 284 of file grabcut.h.


Member Data Documentation

matrix of products (i.e. r*r, r*g, r*b), some values are duplicated.

Definition at line 290 of file grabcut.h.

count of color samples added to the gaussian

Definition at line 292 of file grabcut.h.

small value to add to covariance matrix diagonal to avoid singular values

Definition at line 294 of file grabcut.h.

sum of r,g, and b

Definition at line 288 of file grabcut.h.


The documentation for this class was generated from the following files:


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:47:04