What does the ...(1) do?
std::vector<std::vector<cv::Point>> tight_contour(1);
>Solution :
tight_contour is a std::vector object containing elements of type std::vector<cv::Point>. The (1) is constructing tight_contour to hold 1 initial default-constructed element.