Enum CalibrationFlags
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Different flags for cvCalibrateCamera2 and cvStereoCalibrate
[Flags]
public enum CalibrationFlags
Fields
DisableSchurComplement = 262144Disable Schur complement (use Bouguet calibration engine).
FixAspectRatio = 2fyk is optimized, but the ratio fxk/fyk is fixed.
FixFocalLength = 16fxk and fyk are fixed.
FixIntrinsic = 256If it is set, camera_matrix1,2, as well as dist_coeffs1,2 are fixed, so that only extrinsic parameters are optimized.
FixK1 = 32The 0-th distortion coefficients (k1) are fixed
FixK2 = 64The 1-th distortion coefficients (k2) are fixed
FixK3 = 128The 4-th distortion coefficients (k3) are fixed
FixK4 = 2048Do not change the corresponding radial distortion coefficient during the optimization. If CV_CALIB_USE_INTRINSIC_GUESS is set, the coefficient from the supplied distCoeffs matrix is used, otherwise it is set to 0.
FixK5 = 4096Do not change the corresponding radial distortion coefficient during the optimization. If CV_CALIB_USE_INTRINSIC_GUESS is set, the coefficient from the supplied distCoeffs matrix is used, otherwise it is set to 0.
FixK6 = 8192Do not change the corresponding radial distortion coefficient during the optimization. If CV_CALIB_USE_INTRINSIC_GUESS is set, the coefficient from the supplied distCoeffs matrix is used, otherwise it is set to 0.
FixPrincipalPoint = 4The principal points are fixed during the optimization.
FixS1S2S3S4 = 65536For pinhole model only. The thin prism distortion coefficients are not changed during the optimization. 0 value is used, if UseIntrinsicGuess is not set.
FixTangentDist = 2097152For pinhole model only. Tangential distortion coefficients (p1, p2) are set to zeros and stay zero.
FixTauXTauY = 524288For pinhole model only. The tauX and tauY coefficients are not changed during the optimization. 0 value is used, if UseIntrinsicGuess is not set.
None = 0RationalModel = 16384Enable coefficients k4, k5 and k6. To provide the backward compatibility, this extra flag should be explicitly specified to make the calibration function use the rational model and return 8 coefficients. If the flag is not set, the function will compute only 5 distortion coefficients.
SameFocalLength = 512Enforces fx0=fx1 and fy0=fy1. CV_CALIB_ZERO_TANGENT_DIST - Tangential distortion coefficients for each camera are set to zeros and fixed there.
StereoRegistration = 67108864For multiview calibration only. Use stereo correspondence approach for initial extrinsics guess. Limitation: all cameras should have the same type.
ThinPrismModel = 32768For pinhole model only. Use thin prism distortion model with coefficients s1..s4.
TiltedModel = 262144For pinhole model only. Coefficients tauX and tauY are enabled in camera matrix.
UseExtrinsicGuess = 4194304For stereo and multi-view calibration. Use user provided extrinsics (R, T) as initial point for optimization.
UseIntrinsicGuess = 1The flag allows the function to optimize some or all of the intrinsic parameters, depending on the other flags, but the initial values are provided by the user
UseLu = 131072Use LU instead of SVD decomposition for solving. Much faster but potentially less precise.
UseQr = 1048576Use QR instead of SVD decomposition for solving. Faster but potentially less precise.
ZeroDisparity = 1024for stereo rectification
ZeroTangentDist = 8Tangential distortion coefficients are set to zeros and do not change during the optimization.