7
7
#include < opencv2/core.hpp>
8
8
#include < vector>
9
9
#include < opencv2/aruco.hpp>
10
- #include < opencv2/objdetect/aruco_detector .hpp>
10
+ #include < opencv2/objdetect/charuco_detector .hpp>
11
11
#include < opencv2/aruco/aruco_calib.hpp>
12
12
13
13
@@ -40,28 +40,15 @@ namespace aruco {
40
40
* Only visible corners are returned. For each corner, its corresponding identifier is
41
41
* also returned in charucoIds.
42
42
* The function returns the number of interpolated corners.
43
+ *
44
+ * @deprecated Use CharucoDetector::detectBoard
43
45
*/
44
46
CV_EXPORTS_W int interpolateCornersCharuco (InputArrayOfArrays markerCorners, InputArray markerIds,
45
47
InputArray image, const Ptr<CharucoBoard> &board,
46
48
OutputArray charucoCorners, OutputArray charucoIds,
47
49
InputArray cameraMatrix = noArray(),
48
50
InputArray distCoeffs = noArray(), int minMarkers = 2);
49
51
50
- /* *
51
- * @brief Draws a set of Charuco corners
52
- * @param image input/output image. It must have 1 or 3 channels. The number of channels is not
53
- * altered.
54
- * @param charucoCorners vector of detected charuco corners
55
- * @param charucoIds list of identifiers for each corner in charucoCorners
56
- * @param cornerColor color of the square surrounding each corner
57
- *
58
- * This function draws a set of detected Charuco corners. If identifiers vector is provided, it also
59
- * draws the id of each corner.
60
- */
61
- CV_EXPORTS_W void drawDetectedCornersCharuco (InputOutputArray image, InputArray charucoCorners,
62
- InputArray charucoIds = noArray(),
63
- Scalar cornerColor = Scalar(255 , 0 , 0 ));
64
-
65
52
/* *
66
53
* @brief Detect ChArUco Diamond markers
67
54
*
@@ -83,7 +70,9 @@ CV_EXPORTS_W void drawDetectedCornersCharuco(InputOutputArray image, InputArray
83
70
* This function detects Diamond markers from the previous detected ArUco markers. The diamonds
84
71
* are returned in the diamondCorners and diamondIds parameters. If camera calibration parameters
85
72
* are provided, the diamond search is based on reprojection. If not, diamond search is based on
86
- * homography. Homography is faster than reprojection but can slightly reduce the detection rate.
73
+ * homography. Homography is faster than reprojection, but less accurate.
74
+ *
75
+ * @deprecated Use CharucoDetector::detectDiamonds
87
76
*/
88
77
CV_EXPORTS_W void detectCharucoDiamond (InputArray image, InputArrayOfArrays markerCorners,
89
78
InputArray markerIds, float squareMarkerLengthRate,
@@ -94,32 +83,6 @@ CV_EXPORTS_W void detectCharucoDiamond(InputArray image, InputArrayOfArrays mark
94
83
(getPredefinedDictionary(PredefinedDictionaryType::DICT_4X4_50)));
95
84
96
85
97
-
98
- /* *
99
- * @brief Draw a set of detected ChArUco Diamond markers
100
- *
101
- * @param image input/output image. It must have 1 or 3 channels. The number of channels is not
102
- * altered.
103
- * @param diamondCorners positions of diamond corners in the same format returned by
104
- * detectCharucoDiamond(). (e.g std::vector<std::vector<cv::Point2f> > ). For N detected markers,
105
- * the dimensions of this array should be Nx4. The order of the corners should be clockwise.
106
- * @param diamondIds vector of identifiers for diamonds in diamondCorners, in the same format
107
- * returned by detectCharucoDiamond() (e.g. std::vector<Vec4i>).
108
- * Optional, if not provided, ids are not painted.
109
- * @param borderColor color of marker borders. Rest of colors (text color and first corner color)
110
- * are calculated based on this one.
111
- *
112
- * Given an array of detected diamonds, this functions draws them in the image. The marker borders
113
- * are painted and the markers identifiers if provided.
114
- * Useful for debugging purposes.
115
- */
116
- CV_EXPORTS_W void drawDetectedDiamonds (InputOutputArray image, InputArrayOfArrays diamondCorners,
117
- InputArray diamondIds = noArray(),
118
- Scalar borderColor = Scalar(0 , 0 , 255 ));
119
-
120
-
121
-
122
-
123
86
/* *
124
87
* @brief Draw a ChArUco Diamond marker
125
88
*
0 commit comments