Added C++/openCV implementation