opencv demo on Mac OSX using xcode
see http://www.cnblogs.com/linjk/p/6029306.html
simply run brew install opencv
brew would automatically install opencv under /usr/local/Cellar
then build a command line project use xcode, config header path and lib path, and add dylibs and c++ libs to frameworks
the initiation is done.