title: How to access the cvSeq elements for finding the area of a contour using opencv 247?
body: <p>I'm trying to find the area of a cvSeq contour, but I cant find the correct syntax for accessing sequence element.
  this is the code that I want to correct. Could any one help me?</p>
  
  <pre><code>  for (int i = 0; i &lt; contours-&gt;elem_size; i++)       // iterate through each contour.
    {
        double a = contourArea(contours[i], false);     //  Find the area of contour
        if (a &gt; largest_area) {
            largest_area = a;
            largest_contour_index = i;                  // Store the index of largest contour
            bounding_rect = boundingRect(contours[i]);  // Find the bounding rectangle for biggest     contour
        }
    }
  </code></pre>