A random tree in a random forest, for RGB-D images.
More...
#include <random_tree_image.h>
Public Member Functions |
| RandomTreeImage (int id, const TrainingConfiguration &configuration) |
| RandomTreeImage (boost::shared_ptr< RandomTree< PixelInstance, ImageFeatureFunction > > tree, const TrainingConfiguration &configuration, const cuv::ndarray< WeightType, cuv::host_memory_space > &classLabelPriorDistribution) |
void | train (const std::vector< LabeledRGBDImage > &trainLabelImages, RandomSource &randomSource, size_t subsampleCount, size_t numLabels) |
| Trains the tree from the given training images.
|
void | test (const RGBDImage *image, LabelImage &prediction) const |
| Predicts the given image and outputs the prediction.
|
void | normalizeHistograms (const double histogramBias) |
| Normalize the leaf-node histograms in the tree.
|
const boost::shared_ptr
< RandomTree< PixelInstance,
ImageFeatureFunction > > & | getTree () const |
const cuv::ndarray< WeightType,
cuv::host_memory_space > & | getClassLabelPriorDistribution () const |
size_t | getId () const |
bool | shouldIgnoreLabel (const LabelType &label) const |
Detailed Description
A random tree in a random forest, for RGB-D images.
Definition at line 1075 of file random_tree_image.h.
Constructor & Destructor Documentation
- Parameters
-
id | tree number |
configuration | training configuration of the tree |
- Parameters
-
tree | |
configuration | training configuration of the tree |
classLabelPriorDistribution | prior distributions of the classes |
Member Function Documentation
size_t curfil::RandomTreeImage::getId |
( |
| ) |
const |
|
inline |
void curfil::RandomTreeImage::normalizeHistograms |
( |
const double |
histogramBias | ) |
|
Normalize the leaf-node histograms in the tree.
- Parameters
-
histogramBias | the histogram bias for the normalization |
bool curfil::RandomTreeImage::shouldIgnoreLabel |
( |
const LabelType & |
label | ) |
const |
- Returns
- whether the given label is one that the user specified as being ignored
The documentation for this class was generated from the following file: