Ask Your Question

Revision history [back]

allocating a class member vector of points in the constructor

Hello, I'm new to the opencv and to C++. I declared a public class member that is a vector of points vector<point> hull; now i'm initializing it in the constructor like this: vector<vector<point> >hull( contours.size() ); These is from the OpenCV tutorial. Now i want to draw the hull, but nothing . and the hull.size() return 0. I'm sure that it is a wrong C++ doing, but i couldn't how to do it right. Thanks for any help