@@ -250,8 +250,9 @@ CV_EXPORTS_W void detectMarkers(InputArray image, const Ptr<Dictionary> &diction
250250 * The marker corrdinate system is centered on the middle of the marker, with the Z axis
251251 * perpendicular to the marker plane.
252252 * The coordinates of the four corners of the marker in its own coordinate system are:
253- * (-markerLength/2, markerLength/2, 0), (markerLength/2, markerLength/2, 0),
254- * (markerLength/2, -markerLength/2, 0), (-markerLength/2, -markerLength/2, 0)
253+ * (0, 0, 0), (markerLength, 0, 0),
254+ * (markerLength, markerLength, 0), (0, markerLength, 0)
255+ * @sa use cv::drawFrameAxes to get world coordinate system axis for object points
255256 */
256257CV_EXPORTS_W void estimatePoseSingleMarkers (InputArrayOfArrays corners, float markerLength,
257258 InputArray cameraMatrix, InputArray distCoeffs,
@@ -412,6 +413,7 @@ class CV_EXPORTS_W GridBoard : public Board {
412413 * Input markers that are not included in the board layout are ignored.
413414 * The function returns the number of markers from the input employed for the board pose estimation.
414415 * Note that returning a 0 means the pose has not been estimated.
416+ * @sa use cv::drawFrameAxes to get world coordinate system axis for object points
415417 */
416418CV_EXPORTS_W int estimatePoseBoard (InputArrayOfArrays corners, InputArray ids, const Ptr<Board> &board,
417419 InputArray cameraMatrix, InputArray distCoeffs, OutputArray rvec,
@@ -476,36 +478,14 @@ CV_EXPORTS_W void refineDetectedMarkers(
476478 * Given an array of detected marker corners and its corresponding ids, this functions draws
477479 * the markers in the image. The marker borders are painted and the markers identifiers if provided.
478480 * Useful for debugging purposes.
481+ *
479482 */
480483CV_EXPORTS_W void drawDetectedMarkers (InputOutputArray image, InputArrayOfArrays corners,
481484 InputArray ids = noArray(),
482485 Scalar borderColor = Scalar(0 , 255 , 0 ));
483486
484487
485488
486- /* *
487- * @brief Draw coordinate system axis from pose estimation
488- *
489- * @param image input/output image. It must have 1 or 3 channels. The number of channels is not
490- * altered.
491- * @param cameraMatrix input 3x3 floating-point camera matrix
492- * \f$A = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\f$
493- * @param distCoeffs vector of distortion coefficients
494- * \f$(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, s_4]])\f$ of 4, 5, 8 or 12 elements
495- * @param rvec rotation vector of the coordinate system that will be drawn. (@sa Rodrigues).
496- * @param tvec translation vector of the coordinate system that will be drawn.
497- * @param length length of the painted axis in the same unit than tvec (usually in meters)
498- *
499- * Given the pose estimation of a marker or board, this function draws the axis of the world
500- * coordinate system, i.e. the system centered on the marker/board. Useful for debugging purposes.
501- *
502- * @deprecated use cv::drawFrameAxes
503- */
504- CV_EXPORTS_W void drawAxis (InputOutputArray image, InputArray cameraMatrix, InputArray distCoeffs,
505- InputArray rvec, InputArray tvec, float length, int thickness=3 );
506-
507-
508-
509489/* *
510490 * @brief Draw a canonical marker image
511491 *
0 commit comments