Thanks for all your suggestion and the recommended references. Due to your help i was able to make a wrapper for some
function in opencv 3.2. It is possible to use both c and c++ elements. Just needed to handle the name mangling and compile with a c++ compiler.
Thank you all very much.