Doxygen
boostUtil.cpp File Reference

main training routines for the Viola-Jones algorithm More...

#include <iostream>
#include <iomanip>
#include <vector>
#include <fstream>
#include <Eigen/Dense>
#include "TrainExamples.h"
#include "boostUtil.h"
#include "commonUtil.h"
+ Include dependency graph for boostUtil.cpp:

Go to the source code of this file.

Macros

#define POSITIVE   0
 
#define NEGATIVE   1
 
#define TWEAK_UNIT   1e-2
 
#define MIN_TWEAK   1e-5
 
#define GOAL   1e-7
 

Functions

void train (trainParams const &target)
 train a cascade, see the definition of trainParams More...
 
void recordRule (const char *toFile, vector< stumpRule > const &rule, bool firstLayer, bool lastLayer)
 record a strong learner to toFile More...
 

Detailed Description

main training routines for the Viola-Jones algorithm

Author
Yi-Qing WANG yiqin.nosp@m.g.wa.nosp@m.ng@po.nosp@m.lyte.nosp@m.chniq.nosp@m.ue.e.nosp@m.du

Definition in file boostUtil.cpp.

Macro Definition Documentation

#define GOAL   1e-7

Definition at line 38 of file boostUtil.cpp.

#define MIN_TWEAK   1e-5

Definition at line 37 of file boostUtil.cpp.

#define NEGATIVE   1

Definition at line 35 of file boostUtil.cpp.

#define POSITIVE   0

Definition at line 34 of file boostUtil.cpp.

#define TWEAK_UNIT   1e-2

Definition at line 36 of file boostUtil.cpp.

Function Documentation

void recordRule ( const char *  toFile,
vector< stumpRule > const &  rule,
bool  firstLayer,
bool  lastLayer 
)

record a strong learner to toFile

Parameters
toFilewhere
rulethe strong learner
firstLayeris it a firstLayer in the cascade
lastLayeris it a last layer in the cascade

Definition at line 259 of file boostUtil.cpp.

void train ( trainParams const &  target)

train a cascade, see the definition of trainParams

Definition at line 44 of file boostUtil.cpp.