examples code for O'Reilly Learning OpenCV Oraily 2nd ediotion 2013