OpenCV working in cpp