First time here? Check out the FAQ!
answered 2012-07-15 20:55:25 -0600
Try the OpenCV 2 Cookbook ... there are some good examples in there.
Also, when you download the OpenCV source code, take a look at the camshiftdemo.cpp samples/cpp subfolder. That is a histogram example.