Classes | |
| class | BoykovKolmogorov |
| struct | Color |
| Structure to save RGB colors into floats. More... | |
| struct | Gaussian |
| Gaussian structure. More... | |
| class | GaussianFitter |
| class | GMM |
Typedefs | |
| typedef pcl::PointCloud< Color > | Image |
| An Image is a point cloud of Color. | |
Enumerations | |
| enum | SegmentationValue { SegmentationForeground = 0, SegmentationBackground } |
| Grabcut derived hard segementation values. More... | |
| enum | TrimapValue { TrimapUnknown = -1, TrimapForeground, TrimapBackground } |
| User supplied Trimap values. More... | |
Functions | |
| void | buildGMMs (const Image &image, const std::vector< int > &indices, const std::vector< SegmentationValue > &hardSegmentation, std::vector< std::size_t > &components, GMM &background_GMM, GMM &foreground_GMM) |
| float | colorDistance (const Color &c1, const Color &c2) |
| Compute squared distance between two colors. | |
| void | learnGMMs (const Image &image, const std::vector< int > &indices, const std::vector< SegmentationValue > &hard_segmentation, std::vector< std::size_t > &components, GMM &background_GMM, GMM &foreground_GMM) |
| void pcl::segmentation::grabcut::buildGMMs | ( | const Image & | image, |
| const std::vector< int > & | indices, | ||
| const std::vector< SegmentationValue > & | hardSegmentation, | ||
| std::vector< std::size_t > & | components, | ||
| GMM & | background_GMM, | ||
| GMM & | foreground_GMM | ||
| ) |
Build the initial GMMs using the Orchard and Bouman color clustering algorithm
Definition at line 652 of file grabcut.cpp.
| float pcl::segmentation::grabcut::colorDistance | ( | const Color & | c1, |
| const Color & | c2 | ||
| ) |
Compute squared distance between two colors.
| [in] | c1 | first color |
| [in] | c2 | second color |
| void pcl::segmentation::grabcut::learnGMMs | ( | const Image & | image, |
| const std::vector< int > & | indices, | ||
| const std::vector< SegmentationValue > & | hard_segmentation, | ||
| std::vector< std::size_t > & | components, | ||
| GMM & | background_GMM, | ||
| GMM & | foreground_GMM | ||
| ) |
Iteratively learn GMMs using GrabCut updating algorithm
Definition at line 768 of file grabcut.cpp.