| Cv2StereoCalibrate Method (IEnumerableInputArray, IEnumerableInputArray, IEnumerableInputArray, InputOutputArray, InputOutputArray, InputOutputArray, InputOutputArray, Size, OutputArray, OutputArray, OutputArray, OutputArray, CalibrationFlags, NullableTermCriteria) |
finds intrinsic and extrinsic parameters of a stereo camera
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static double StereoCalibrate(
IEnumerable<InputArray> objectPoints,
IEnumerable<InputArray> imagePoints1,
IEnumerable<InputArray> imagePoints2,
InputOutputArray cameraMatrix1,
InputOutputArray distCoeffs1,
InputOutputArray cameraMatrix2,
InputOutputArray distCoeffs2,
Size imageSize,
OutputArray R,
OutputArray T,
OutputArray E,
OutputArray F,
CalibrationFlags flags = CalibrationFlags.FixIntrinsic,
Nullable<TermCriteria> criteria = null
)
Public Shared Function StereoCalibrate (
objectPoints As IEnumerable(Of InputArray),
imagePoints1 As IEnumerable(Of InputArray),
imagePoints2 As IEnumerable(Of InputArray),
cameraMatrix1 As InputOutputArray,
distCoeffs1 As InputOutputArray,
cameraMatrix2 As InputOutputArray,
distCoeffs2 As InputOutputArray,
imageSize As Size,
R As OutputArray,
T As OutputArray,
E As OutputArray,
F As OutputArray,
Optional flags As CalibrationFlags = CalibrationFlags.FixIntrinsic,
Optional criteria As Nullable(Of TermCriteria) = Nothing
) As Double
public:
static double StereoCalibrate(
IEnumerable<InputArray^>^ objectPoints,
IEnumerable<InputArray^>^ imagePoints1,
IEnumerable<InputArray^>^ imagePoints2,
InputOutputArray^ cameraMatrix1,
InputOutputArray^ distCoeffs1,
InputOutputArray^ cameraMatrix2,
InputOutputArray^ distCoeffs2,
Size imageSize,
OutputArray^ R,
OutputArray^ T,
OutputArray^ E,
OutputArray^ F,
CalibrationFlags flags = CalibrationFlags::FixIntrinsic,
Nullable<TermCriteria> criteria = nullptr
)
static member StereoCalibrate :
objectPoints : IEnumerable<InputArray> *
imagePoints1 : IEnumerable<InputArray> *
imagePoints2 : IEnumerable<InputArray> *
cameraMatrix1 : InputOutputArray *
distCoeffs1 : InputOutputArray *
cameraMatrix2 : InputOutputArray *
distCoeffs2 : InputOutputArray *
imageSize : Size *
R : OutputArray *
T : OutputArray *
E : OutputArray *
F : OutputArray *
?flags : CalibrationFlags *
?criteria : Nullable<TermCriteria>
(* Defaults:
let _flags = defaultArg flags CalibrationFlags.FixIntrinsic
let _criteria = defaultArg criteria null
*)
-> float
Parameters
- objectPoints
- Type: System.Collections.GenericIEnumerableInputArray
Vector of vectors of the calibration pattern points. - imagePoints1
- Type: System.Collections.GenericIEnumerableInputArray
Vector of vectors of the projections of the calibration pattern points, observed by the first camera. - imagePoints2
- Type: System.Collections.GenericIEnumerableInputArray
Vector of vectors of the projections of the calibration pattern points, observed by the second camera. - cameraMatrix1
- Type: OpenCvSharpInputOutputArray
Input/output first camera matrix - distCoeffs1
- Type: OpenCvSharpInputOutputArray
Input/output vector of distortion coefficients (k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6]]) of 4, 5, or 8 elements.
The output vector length depends on the flags. - cameraMatrix2
- Type: OpenCvSharpInputOutputArray
Input/output second camera matrix. The parameter is similar to cameraMatrix1 . - distCoeffs2
- Type: OpenCvSharpInputOutputArray
Input/output lens distortion coefficients for the second camera. The parameter is similar to distCoeffs1 . - imageSize
- Type: OpenCvSharpSize
Size of the image used only to initialize intrinsic camera matrix. - R
- Type: OpenCvSharpOutputArray
Output rotation matrix between the 1st and the 2nd camera coordinate systems. - T
- Type: OpenCvSharpOutputArray
Output translation vector between the coordinate systems of the cameras. - E
- Type: OpenCvSharpOutputArray
Output essential matrix. - F
- Type: OpenCvSharpOutputArray
Output fundamental matrix. - flags (Optional)
- Type: OpenCvSharpCalibrationFlags
Different flags that may be zero or a combination of the CalibrationFlag values - criteria (Optional)
- Type: SystemNullableTermCriteria
Termination criteria for the iterative optimization algorithm.
Return Value
Type:
Double[Missing <returns> documentation for "M:OpenCvSharp.Cv2.StereoCalibrate(System.Collections.Generic.IEnumerable{OpenCvSharp.InputArray},System.Collections.Generic.IEnumerable{OpenCvSharp.InputArray},System.Collections.Generic.IEnumerable{OpenCvSharp.InputArray},OpenCvSharp.InputOutputArray,OpenCvSharp.InputOutputArray,OpenCvSharp.InputOutputArray,OpenCvSharp.InputOutputArray,OpenCvSharp.Size,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,OpenCvSharp.CalibrationFlags,System.Nullable{OpenCvSharp.TermCriteria})"]
See Also