structural_analysis_and_shape_descriptors.patch

Vladimir Eremeev, 2012-12-03 11:19 am

Download (1.6 kB)

 
C:/opencv/modules/imgproc/doc/structural_analysis_and_shape_descriptors.rst Mon Dec 03 14:06:03 2012
137 137

  
138 138
    :param contours: Detected contours. Each contour is stored as a vector of points.
139 139

  
140
    :param hierarchy: Optional output vector containing information about the image topology. It has as many elements as the number of contours. For each contour  ``contours[i]`` , the elements  ``hierarchy[i][0]`` ,  ``hiearchy[i][1]`` ,  ``hiearchy[i][2]`` , and  ``hiearchy[i][3]``  are set to 0-based indices in  ``contours``  of the next and previous contours at the same hierarchical level: the first child contour and the parent contour, respectively. If for a contour  ``i``  there are no next, previous, parent, or nested contours, the corresponding elements of  ``hierarchy[i]``  will be negative.
140
    :param hierarchy: Optional output vector containing information about the image topology. It has as many elements as the number of contours. For each i-th contour  ``contours[i]`` , the elements  ``hierarchy[i][0]`` ,  ``hiearchy[i][1]`` ,  ``hiearchy[i][2]`` , and  ``hiearchy[i][3]``  are set to 0-based indices in  ``contours``  of the next and previous contours at the same hierarchical level, the first child contour and the parent contour, respectively. If for the contour  ``i``  there are no next, previous, parent, or nested contours, the corresponding elements of  ``hierarchy[i]``  will be negative.
141 141

  
142 142
    :param mode: Contour retrieval mode (if you use Python see also a note below).
143 143