mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Honor fixing principal point in camera calib tutorial.
This commit is contained in:
parent
4ad45af53f
commit
5d699e9ba5
@ -143,10 +143,11 @@ public:
|
|||||||
if (useFisheye) {
|
if (useFisheye) {
|
||||||
// the fisheye model has its own enum, so overwrite the flags
|
// the fisheye model has its own enum, so overwrite the flags
|
||||||
flag = fisheye::CALIB_FIX_SKEW | fisheye::CALIB_RECOMPUTE_EXTRINSIC;
|
flag = fisheye::CALIB_FIX_SKEW | fisheye::CALIB_RECOMPUTE_EXTRINSIC;
|
||||||
if(fixK1) flag |= fisheye::CALIB_FIX_K1;
|
if(fixK1) flag |= fisheye::CALIB_FIX_K1;
|
||||||
if(fixK2) flag |= fisheye::CALIB_FIX_K2;
|
if(fixK2) flag |= fisheye::CALIB_FIX_K2;
|
||||||
if(fixK3) flag |= fisheye::CALIB_FIX_K3;
|
if(fixK3) flag |= fisheye::CALIB_FIX_K3;
|
||||||
if(fixK4) flag |= fisheye::CALIB_FIX_K4;
|
if(fixK4) flag |= fisheye::CALIB_FIX_K4;
|
||||||
|
if (calibFixPrincipalPoint) flag |= fisheye::CALIB_FIX_PRINCIPAL_POINT;
|
||||||
}
|
}
|
||||||
|
|
||||||
calibrationPattern = NOT_EXISTING;
|
calibrationPattern = NOT_EXISTING;
|
||||||
|
Loading…
Reference in New Issue
Block a user