title: Drawing Polygons in OpenCV?
body: <p>What am I doing wrong here? </p>
  
  <pre><code>vector &lt;vector&lt;Point&gt; &gt; contourElement;
  
  for (int counter = 0; counter &lt; contours -&gt; size (); counter ++)
  {   
      contourElement.push_back (contours -&gt; at (counter));
  
      const Point *elementPoints [1] = {contourElement.at (0)};
      int numberOfPoints [] = {contourElement.at (0).size ()};
  
      fillPoly (contourMask, elementPoints, numberOfPoints, 1, Scalar (0, 0, 0), 8);
  </code></pre>
  
  <p>I keep getting an error on the const Point part. The compiler says </p>
  
  <pre><code>error: cannot convert 'std::vector&lt;cv::Point_&lt;int&gt;, std::allocator&lt;cv::Point_&lt;int&gt; &gt; &gt;' to 'const cv::Point*' in initialization
  </code></pre>
  
  <p>What am I doing wrong? (PS: Obviously ignore the missing bracket at the end of the for loop due to this being only part of my code)</p>