terrain_estimator
Public Member Functions | List of all members
terrain_estimator::SVMTerrainClassification Class Reference

A batch of SVM function is used to classify the histogram. More...

#include <ModelBaseAnalysis.hpp>

Public Member Functions

 SVMTerrainClassification (std::vector< TerrainType > terrain_types, int min_number_of_votes)
 
void addSVMClassifier (SVMConfiguration svm_function)
 
void addSVMClassifier (std::vector< SVMConfiguration > svm_functions)
 
TerrainType getTerrainClassification (std::vector< double > histogram)
 
double getProbability (TerrainType type)
 

Detailed Description

A batch of SVM function is used to classify the histogram.

Author
Author:
Patrick Merz Paranhos
Date
Date:
26/10/2011

Contact: patri.nosp@m.ck.m.nosp@m.erz_p.nosp@m.aran.nosp@m.hos@d.nosp@m.fki..nosp@m.de

Constructor & Destructor Documentation

SVMTerrainClassification::SVMTerrainClassification ( std::vector< TerrainType terrain_types,
int  min_number_of_votes 
)

The type that will be detected is the first type to acquire the minimal number of votes Each vote is casted by a svm function

Parameters
terrain_types- the list of terrains types in the classification
min_number_of_votes- minimal number of votes needed for a terrain to be detected (each svm function counts as one vote) -

Member Function Documentation

void SVMTerrainClassification::addSVMClassifier ( SVMConfiguration  svm_function)
Parameters
SVMConfiguration- the svm classification function
void terrain_estimator::SVMTerrainClassification::addSVMClassifier ( std::vector< SVMConfiguration svm_functions)
inline
Parameters
SVMConfiguration- the svm classification function
double SVMTerrainClassification::getProbability ( TerrainType  type)
Parameters
TerrainType- the terrain type
Returns
the probability distribution of a type based on the last terrain classification
TerrainType SVMTerrainClassification::getTerrainClassification ( std::vector< double >  histogram)

Calculates the svm value from the combined histogram The combined histogram needs to exist.

Returns
the terrain type as classified by the svm

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