| CvArucoEstimatePoseSingleMarkers Method |
Pose estimation for single markers
Namespace:
OpenCvSharp.Aruco
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void EstimatePoseSingleMarkers(
Point2f[][] corners,
float markerLength,
InputArray cameraMatrix,
InputArray distortionCoefficients,
OutputArray rvec,
OutputArray tvec,
OutputArray objPoints = null
)
Public Shared Sub EstimatePoseSingleMarkers (
corners As Point2f()(),
markerLength As Single,
cameraMatrix As InputArray,
distortionCoefficients As InputArray,
rvec As OutputArray,
tvec As OutputArray,
Optional objPoints As OutputArray = Nothing
)
public:
static void EstimatePoseSingleMarkers(
array<array<Point2f>^>^ corners,
float markerLength,
InputArray^ cameraMatrix,
InputArray^ distortionCoefficients,
OutputArray^ rvec,
OutputArray^ tvec,
OutputArray^ objPoints = nullptr
)
static member EstimatePoseSingleMarkers :
corners : Point2f[][] *
markerLength : float32 *
cameraMatrix : InputArray *
distortionCoefficients : InputArray *
rvec : OutputArray *
tvec : OutputArray *
?objPoints : OutputArray
(* Defaults:
let _objPoints = defaultArg objPoints null
*)
-> unit
Parameters
- corners
- Type: OpenCvSharpPoint2f
corners vector of already detected markers corners.
For each marker, its four corners are provided, (e.g std::vector<std::vector<cv::Point2f>> ).
For N detected markers, the dimensions of this array should be Nx4. The order of the corners should be clockwise. - markerLength
- Type: SystemSingle
the length of the markers' side. The returning translation vectors will
be in the same unit.Normally, unit is meters. - cameraMatrix
- Type: OpenCvSharpInputArray
input 3x3 floating-point camera matrix
\f$A = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\f$ - distortionCoefficients
- Type: OpenCvSharpInputArray
vector of distortion coefficients
\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 - rvec
- Type: OpenCvSharpOutputArray
array of output rotation vectors (@sa Rodrigues) (e.g. std::vector<cv::Vec3d>).
Each element in rvecs corresponds to the specific marker in imgPoints. - tvec
- Type: OpenCvSharpOutputArray
array of output translation vectors (e.g. std::vector<cv::Vec3d>).
Each element in tvecs corresponds to the specific marker in imgPoints. - objPoints (Optional)
- Type: OpenCvSharpOutputArray
array of object points of all the marker corners
See Also