c++ codes using opencv