moved opencv method to ocv.cpp, added header