How to create a contour, by sending manually the x,y points of the contours (in my own function) instead to use findcontours?
a contour can be a
std::vector<cv::Point>, or a Mat of suitable shape.
a list of contours is a vector of those.
browse the examples. here’s one: OpenCV: samples/cpp/contours2.cpp
don’t expect there to be an example that precisely does what you need.