http://www.fbeeper.com http://fbeeper.tumblr.com
Watch this Author's files
I've tested your code on Mac Os X, it works fine :)
1. Compile and install OpenCV (http://bit.ly/1j2pjL)
2. Config your mex compiler if you haven't done it already (mex -config)
3. Compile Sreekar's code with Matlab as easily as: mex FaceDetect.cpp -I/usr/local/include/opencv -L/usr/local/lib -lcxcore -lcv -lcvaux -lhighgui -lml
Hope it helps to the Mac beginners ;)
And, thanks Sreekar for your code!!!
Contact us at files@mathworks.com