OpenCV : C to C++