| Cv2StereoCalibrate Method (IEnumerableIEnumerablePoint3f, IEnumerableIEnumerablePoint2f, IEnumerableIEnumerablePoint2f, Double, Double, Double, Double, 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<IEnumerable<Point3f>> objectPoints,
IEnumerable<IEnumerable<Point2f>> imagePoints1,
IEnumerable<IEnumerable<Point2f>> imagePoints2,
double[,] cameraMatrix1,
double[] distCoeffs1,
double[,] cameraMatrix2,
double[] 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 IEnumerable(Of Point3f)),
imagePoints1 As IEnumerable(Of IEnumerable(Of Point2f)),
imagePoints2 As IEnumerable(Of IEnumerable(Of Point2f)),
cameraMatrix1 As Double(,),
distCoeffs1 As Double(),
cameraMatrix2 As Double(,),
distCoeffs2 As Double(),
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<IEnumerable<Point3f>^>^ objectPoints,
IEnumerable<IEnumerable<Point2f>^>^ imagePoints1,
IEnumerable<IEnumerable<Point2f>^>^ imagePoints2,
array<double,2>^ cameraMatrix1,
array<double>^ distCoeffs1,
array<double,2>^ cameraMatrix2,
array<double>^ distCoeffs2,
Size imageSize,
OutputArray^ R,
OutputArray^ T,
OutputArray^ E,
OutputArray^ F,
CalibrationFlags flags = CalibrationFlags::FixIntrinsic,
Nullable<TermCriteria> criteria = nullptr
)
static member StereoCalibrate :
objectPoints : IEnumerable<IEnumerable<Point3f>> *
imagePoints1 : IEnumerable<IEnumerable<Point2f>> *
imagePoints2 : IEnumerable<IEnumerable<Point2f>> *
cameraMatrix1 : float[,] *
distCoeffs1 : float[] *
cameraMatrix2 : float[,] *
distCoeffs2 : float[] *
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.GenericIEnumerableIEnumerablePoint3f
Vector of vectors of the calibration pattern points. - imagePoints1
- Type: System.Collections.GenericIEnumerableIEnumerablePoint2f
Vector of vectors of the projections of the calibration pattern points, observed by the first camera. - imagePoints2
- Type: System.Collections.GenericIEnumerableIEnumerablePoint2f
Vector of vectors of the projections of the calibration pattern points, observed by the second camera. - cameraMatrix1
- Type: SystemDouble
Input/output first camera matrix - distCoeffs1
- Type: SystemDouble
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: SystemDouble
Input/output second camera matrix. The parameter is similar to cameraMatrix1 . - distCoeffs2
- Type: SystemDouble
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{System.Collections.Generic.IEnumerable{OpenCvSharp.Point3f}},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{OpenCvSharp.Point2f}},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{OpenCvSharp.Point2f}},System.Double[0:,0:],System.Double[],System.Double[0:,0:],System.Double[],OpenCvSharp.Size,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,OpenCvSharp.CalibrationFlags,System.Nullable{OpenCvSharp.TermCriteria})"]
See Also