Ask Your Question

Revision history [back]

Some remarks

  • cvdrawcontours suggests you are using the old API. Skip it, move away and go to the C++ variants. The C-API was declared deprecated ages ago!
  • Your convex hull is a vector<points>, each having their X and Y coordinate. So it is simply a task of looping over the convex hull points, and calling attribute X and Y of each point. That cannot be to difficult right?
  • Printing on screen can be done using standard C++ library with cerr or cout functions.