| Cv2DrawFrameAxes Method |
Draw axes of the world/object coordinate system from pose estimation.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void DrawFrameAxes(
InputOutputArray image,
InputArray cameraMatrix,
InputArray distCoeffs,
InputArray rvec,
InputArray tvec,
float length,
int thickness = 3
)
Public Shared Sub DrawFrameAxes (
image As InputOutputArray,
cameraMatrix As InputArray,
distCoeffs As InputArray,
rvec As InputArray,
tvec As InputArray,
length As Single,
Optional thickness As Integer = 3
)
public:
static void DrawFrameAxes(
InputOutputArray^ image,
InputArray^ cameraMatrix,
InputArray^ distCoeffs,
InputArray^ rvec,
InputArray^ tvec,
float length,
int thickness = 3
)
static member DrawFrameAxes :
image : InputOutputArray *
cameraMatrix : InputArray *
distCoeffs : InputArray *
rvec : InputArray *
tvec : InputArray *
length : float32 *
?thickness : int
(* Defaults:
let _thickness = defaultArg thickness 3
*)
-> unit
Parameters
- image
- Type: OpenCvSharpInputOutputArray
Input/output image. It must have 1 or 3 channels. The number of channels is not altered. - cameraMatrix
- Type: OpenCvSharpInputArray
Input 3x3 floating-point matrix of camera intrinsic parameters. - distCoeffs
- Type: OpenCvSharpInputArray
Input 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[, \tau_x, \tau_y]]]])\f$ of
4, 5, 8, 12 or 14 elements.If the vector is empty, the zero distortion coefficients are assumed. - rvec
- Type: OpenCvSharpInputArray
Rotation vector (see @ref Rodrigues ) that, together with tvec , brings points from
the model coordinate system to the camera coordinate system. - tvec
- Type: OpenCvSharpInputArray
Translation vector. - length
- Type: SystemSingle
Length of the painted axes in the same unit than tvec (usually in meters). - thickness (Optional)
- Type: SystemInt32
Line thickness of the painted axes.
Remarks This function draws the axes of the world/object coordinate system w.r.t. to the camera frame.
OX is drawn in red, OY in green and OZ in blue.
See Also