1+ // This file is part of OpenCV project.
2+ // It is subject to the license terms in the LICENSE file found in the top-level directory
3+ // of this distribution and at http://opencv.org/license.html.
4+
5+ #ifndef __OPENCV_FIND_ELLIPSES_HPP__
6+ #define __OPENCV_FIND_ELLIPSES_HPP__
7+
8+ #include < opencv2/core.hpp>
9+
10+ namespace cv {
11+ namespace ximgproc {
12+
13+ // ! @addtogroup ximgproc
14+ // ! @{
15+
16+ /* *
17+ @brief Finds ellipses fastly in an image using projective invariant pruning.
18+ *
19+ * The function detects ellipses in images using projective invariant pruning.
20+ * For more details about this implementation, please see
21+ * [JIA2017FAST] Jia, Qi et al, (2017).
22+ * A Fast Ellipse Detector using Projective Invariant Pruning. IEEE Transactions on Image Processing.
23+ *
24+ @param image input image, could be gray or color.
25+ @param ellipses output vector of found ellipses. each vector is encoded as five float $x, y, a, b, radius, score$.
26+ @param scoreThreshold float, the threshold of ellipse score.
27+ @param reliabilityThreshold float, the threshold of reliability.
28+ @param centerDistanceThreshold float, the threshold of center distance.
29+ */
30+ CV_EXPORTS_W void findEllipses (
31+ InputArray image, OutputArray ellipses,
32+ float scoreThreshold = 0 .7f , float reliabilityThreshold = 0 .5f ,
33+ float centerDistanceThreshold = 0 .05f
34+ );
35+ // ! @} ximgproc
36+ }
37+ }
38+ #endif
0 commit comments