Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To obtain the bounding rectangle from a set of points, you can use the OpenCV <a href="http://docs.opencv.org/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html#boundingrect" rel="nofollow">boundingRect()</a> function. Also note the similar <a href="http://docs.opencv.org/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html#fitellipse" rel="nofollow">fitEllipse()</a> function.</p> <p><strong>boundingRect</strong><br> <em>Calculates the up-right bounding rectangle of a point set.</em></p> <pre><code>C++: Rect boundingRect(InputArray points) Python: cv2.boundingRect(points) → retval C: CvRect cvBoundingRect(CvArr* points, int update=0 ) Python: cv.BoundingRect(points, update=0) → CvRect </code></pre> <p>Parameters: points – Input 2D point set, stored in std::vector or Mat.<br> The function calculates and returns the minimal up-right bounding rectangle for the specified point set.</p> <p><strong>fitEllipse</strong><br> <em>Fits an ellipse around a set of 2D points.</em></p> <pre><code>C++: RotatedRect fitEllipse(InputArray points) Python: cv2.fitEllipse(points) → retval C: CvBox2D cvFitEllipse2(const CvArr* points) Python: cv.FitEllipse2(points) → Box2D </code></pre> <p>Parameters: points – Input 2D point set, stored in:</p> <pre><code>std::vector&lt;&gt; or Mat (C++ interface) CvSeq* or CvMat* (C interface) Nx2 numpy array (Python interface) </code></pre> <p>The function calculates the ellipse that fits (in a least-squares sense) a set of 2D points best of all. It returns the rotated rectangle in which the ellipse is inscribed. The algorithm [Fitzgibbon95] is used.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload