Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

viola_locator.cpp File Reference

#include "common.h"
#include <iostream.h>
#include <iomanip.h>
#include <fstream.h>
#include <math.h>
#include <time.h>
#include <string>
#include <dirent.h>
#include <stdlib.h>
#include <strstream.h>
#include "viola_locator.h"
#include "locator_defines.h"

Defines

#define MAXIMGS   20000

Functions

double computeImageStdDev (GrayImage &img, unsigned int x=0, unsigned int y=0, int width=-1, int height=-1)
AdaBoostClassifiertrain_viola (string FaceDir, string NonFaceDir, string fileName, unsigned int T)
AdaBoostClassifierreadClassifier (string fileName)
void test (AdaBoostClassifier *classifier, string FaceDir, string NonFaceDir)

Define Documentation

#define MAXIMGS   20000
 


Function Documentation

double computeImageStdDev GrayImage   img,
unsigned int    x = 0,
unsigned int    y = 0,
int    width = -1,
int    height = -1
 

this function will compute the standard deviation for an image

AdaBoostClassifier* readClassifier string    fileName
 

read an array of classifiers from a file

Parameters:
finalClsfr  an array of classifiers/features to be written to
T  the length of finalClsfr the number of features
fileName  the name of the file to read the data from
Returns:
"false" on failure, or "true" on success.

void test AdaBoostClassifier   classifier,
string    FaceDir,
string    NonFaceDir
 

AdaBoostClassifier* train_viola string    FaceDir,
string    NonFaceDir,
string    fileName,
unsigned int    T
 


Generated on Wed Apr 23 10:42:34 2003 for BioFilter by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002