Ask Your Question

avi555's profile - activity

2013-01-01 16:25:45 -0600 commented answer allocating a class member vector of points in the constructor

Thanks ZachTM, well i forgot to post the line convexHull( Mat(contours[i]), hull[i], false ); this line comes after the declaration in the constructor. Thanks again

2013-01-01 10:17:20 -0600 asked a question 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