Exercise in Image processing and using OpenCV