answered 2014-02-25 22:10:22 -0600
I have put an valid implementation about this on github. see https://github.com/pengx17/facedetect/blob/master/src/facedetect.cpp