Open Detection  1.0
SVMlight Class Reference

#include <svmlight.h>

Public Member Functions

void saveModelToFile (const std::string _modelFileName)
 
void loadModelFromFile (const std::string _modelFileName)
 
void read_problem (char *filename)
 
void train ()
 
void getSingleDetectingVector (std::vector< float > &singleDetectorVector, std::vector< unsigned int > &singleDetectorVectorIndices)
 Generates a single detecting feature vector (vec1) from the trained support vectors, for use e.g. More...
 
float getThreshold () const
 Return model detection threshold / bias. More...
 
const char * getSVMName () const
 

Static Public Member Functions

static SVMlightgetInstance ()
 Singleton. More...
 

Public Attributes

LEARN_PARM * learn_parm
 
KERNEL_PARM * kernel_parm
 

Detailed Description

Definition at line 68 of file svmlight.h.

Member Function Documentation

SVMlight * SVMlight::getInstance ( )
static

Singleton.

Definition at line 199 of file svmlight.h.

void SVMlight::getSingleDetectingVector ( std::vector< float > &  singleDetectorVector,
std::vector< unsigned int > &  singleDetectorVectorIndices 
)
inline

Generates a single detecting feature vector (vec1) from the trained support vectors, for use e.g.

with the HOG algorithm vec1 = sum_1_n (alpha_y*x_i). (vec1 is a 1 x n column vector. n = feature vector length)

Parameters
singleDetectorVectorresulting single detector vector for use in openCV HOG
singleDetectorVectorIndicesdummy vector for this implementation

Definition at line 161 of file svmlight.h.

const char* SVMlight::getSVMName ( ) const
inline

Definition at line 192 of file svmlight.h.

float SVMlight::getThreshold ( ) const
inline

Return model detection threshold / bias.

Returns
detection threshold / bias

Definition at line 188 of file svmlight.h.

void SVMlight::loadModelFromFile ( const std::string  _modelFileName)
inline

Definition at line 140 of file svmlight.h.

void SVMlight::read_problem ( char *  filename)
inline

Definition at line 145 of file svmlight.h.

void SVMlight::saveModelToFile ( const std::string  _modelFileName)
inline

Definition at line 136 of file svmlight.h.

void SVMlight::train ( )
inline

Definition at line 151 of file svmlight.h.

Member Data Documentation

KERNEL_PARM* SVMlight::kernel_parm

Definition at line 132 of file svmlight.h.

LEARN_PARM* SVMlight::learn_parm

Definition at line 131 of file svmlight.h.


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