Download a dataset at http://www.idiap.ch/~marcel/Databases/frontalfaces/main.html

>  tar -zxvf datafaced.tar.gz 

# boosting pixel-based weak classifiers
> trainPixStump -one_file datafaced/face_train.bindata -one_file datafaced/nonface_train.bindata 19 19 -imagenorm -equalh -o model.wsm

> testPixStump model.wsm -one_file datafaced/face_train.bindata 19 19 -imagenorm -equalh -o face_train
> testPixStump model.wsm -one_file datafaced/nonface_train.bindata 19 19 -imagenorm -equalh -o nonface_train
> testPixStump model.wsm -one_file datafaced/face_test.bindata 19 19 -imagenorm -equalh -o face_test
> testPixStump model.wsm -one_file datafaced/nonface_test.bindata 19 19 -imagenorm -equalh -o nonface_test

> gnuplot
gnuplot> set data style lines
gnuplot> plot 'face_train.histo' with lines, 'nonface_train.histo' with lines, 'face_test.histo' with lines, 'nonface_test.histo' with lines

> rm *.histo
> rm *.output


# boosting Haar-like weak classifiers
> trainHaarStump -one_file datafaced/face_train.bindata -one_file datafaced/nonface_train.bindata 19 19 -imagenorm -n 10 -o modelhaar.inorm.wsm

> testHaarStump modelhaar.inorm.wsm -one_file datafaced/face_train.bindata 19 19 -imagenorm -o face_train_inorm
> testHaarStump modelhaar.inorm.wsm -one_file datafaced/nonface_train.bindata 19 19 -imagenorm -o nonface_train_inorm
> testHaarStump modelhaar.inorm.wsm -one_file datafaced/face_test.bindata 19 19 -imagenorm -o face_test_inorm
> testHaarStump modelhaar.inorm.wsm -one_file datafaced/nonface_test.bindata 19 19 -imagenorm -o nonface_test_inorm
> testHaarStump modelhaar.inorm.wsm -one_file datafaced/nonface_test.bindata 19 19 -haarnorm -o nonface_test_haarnorm

> gnuplot
gnuplot> set data style lines
gnuplot> plot 'face_train_inorm.histo' with lines, 'nonface_train_inorm.histo' with lines, 'face_test_inorm.histo' with lines, 'nonface_test_inorm.histo' with lines, 'nonface_test_haarnorm.histo' with lines

> rm *.histo
> rm *.output