CvInvokeSolvePnP Method (IInputArray, IInputArray, IInputArray, IInputArray, IOutputArray, IOutputArray, Boolean, SolvePnpMethod) |
http://www.emgu.com
Estimates extrinsic camera parameters using known intrinsic parameters and extrinsic parameters for each view. The coordinates of 3D object points and their correspondent 2D projections must be specified. This function also minimizes back-projection error
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static bool SolvePnP(
IInputArray objectPoints,
IInputArray imagePoints,
IInputArray intrinsicMatrix,
IInputArray distortionCoeffs,
IOutputArray rotationVector,
IOutputArray translationVector,
bool useExtrinsicGuess = false,
SolvePnpMethod flags = SolvePnpMethod.Iterative
)
Public Shared Function SolvePnP (
objectPoints As IInputArray,
imagePoints As IInputArray,
intrinsicMatrix As IInputArray,
distortionCoeffs As IInputArray,
rotationVector As IOutputArray,
translationVector As IOutputArray,
Optional useExtrinsicGuess As Boolean = false,
Optional flags As SolvePnpMethod = SolvePnpMethod.Iterative
) As Boolean
public:
static bool SolvePnP(
IInputArray^ objectPoints,
IInputArray^ imagePoints,
IInputArray^ intrinsicMatrix,
IInputArray^ distortionCoeffs,
IOutputArray^ rotationVector,
IOutputArray^ translationVector,
bool useExtrinsicGuess = false,
SolvePnpMethod flags = SolvePnpMethod::Iterative
)
static member SolvePnP :
objectPoints : IInputArray *
imagePoints : IInputArray *
intrinsicMatrix : IInputArray *
distortionCoeffs : IInputArray *
rotationVector : IOutputArray *
translationVector : IOutputArray *
?useExtrinsicGuess : bool *
?flags : SolvePnpMethod
(* Defaults:
let _useExtrinsicGuess = defaultArg useExtrinsicGuess false
let _flags = defaultArg flags SolvePnpMethod.Iterative
*)
-> bool
Parameters
- objectPoints
- Type: Emgu.CVIInputArray
The array of object points, 3xN or Nx3, where N is the number of points in the view - imagePoints
- Type: Emgu.CVIInputArray
The array of corresponding image points, 2xN or Nx2, where N is the number of points in the view - intrinsicMatrix
- Type: Emgu.CVIInputArray
The camera matrix (A) [fx 0 cx; 0 fy cy; 0 0 1]. - distortionCoeffs
- Type: Emgu.CVIInputArray
The vector of distortion coefficients, 4x1 or 1x4 [k1, k2, p1, p2]. If it is IntPtr.Zero, all distortion coefficients are considered 0's. - rotationVector
- Type: Emgu.CVIOutputArray
The output 3x1 or 1x3 rotation vector (compact representation of a rotation matrix, see cvRodrigues2). - translationVector
- Type: Emgu.CVIOutputArray
The output 3x1 or 1x3 translation vector - useExtrinsicGuess (Optional)
- Type: SystemBoolean
Use the input rotation and translation parameters as a guess - flags (Optional)
- Type: Emgu.CV.CvEnumSolvePnpMethod
Method for solving a PnP problem
Return Value
Type:
BooleanTrue if successful
See Also