Test C++ program using OpenCV