working with OpenCV 2.4.5