I want to group a different number of contours found with opencv to a set:
I also want to keep track of the indexes for every contour in every set,
e.g. in Set 1 you can find contour 10,11,12,13,14.
My contours are stored in a vector<vector<Point>>
.
I already tried the function cv::approxPolyDP
but the polygon will be drawn around all contours.
I know I can calculate the distance between every single contour pair but how can I use the distance to group them to a new contour?