@@ -1785,8 +1785,6 @@ void cv::omnidir::internal::estimateUncertainties(InputArrayOfArrays objectPoint
1785
1785
1786
1786
errors = 3 * s * _JTJ_inv.diag ();
1787
1787
1788
- checkFixed (errors, flags, n);
1789
-
1790
1788
rms = 0 ;
1791
1789
const Vec2d* ptr_ex = reprojError.ptr <Vec2d>();
1792
1790
for (int i = 0 ; i < (int )reprojError.total (); i++)
@@ -1995,52 +1993,6 @@ double cv::omnidir::internal::computeMeanReproErrStereo(InputArrayOfArrays objec
1995
1993
return reProErr;
1996
1994
}
1997
1995
1998
- void cv::omnidir::internal::checkFixed (Mat& G, int flags, int n)
1999
- {
2000
- int _flags = flags;
2001
- if (_flags >= omnidir::CALIB_FIX_CENTER)
2002
- {
2003
- G.at <double >(6 *n+3 ) = 0 ;
2004
- G.at <double >(6 *n+4 ) = 0 ;
2005
- _flags -= omnidir::CALIB_FIX_CENTER;
2006
- }
2007
- if (_flags >= omnidir::CALIB_FIX_GAMMA)
2008
- {
2009
- G.at <double >(6 *n) = 0 ;
2010
- G.at <double >(6 *n+1 ) = 0 ;
2011
- _flags -= omnidir::CALIB_FIX_GAMMA;
2012
- }
2013
- if (_flags >= omnidir::CALIB_FIX_XI)
2014
- {
2015
- G.at <double >(6 *n + 5 ) = 0 ;
2016
- _flags -= omnidir::CALIB_FIX_XI;
2017
- }
2018
- if (_flags >= omnidir::CALIB_FIX_P2)
2019
- {
2020
- G.at <double >(6 *n + 9 ) = 0 ;
2021
- _flags -= omnidir::CALIB_FIX_P2;
2022
- }
2023
- if (_flags >= omnidir::CALIB_FIX_P1)
2024
- {
2025
- G.at <double >(6 *n + 8 ) = 0 ;
2026
- _flags -= omnidir::CALIB_FIX_P1;
2027
- }
2028
- if (_flags >= omnidir::CALIB_FIX_K2)
2029
- {
2030
- G.at <double >(6 *n + 7 ) = 0 ;
2031
- _flags -= omnidir::CALIB_FIX_K2;
2032
- }
2033
- if (_flags >= omnidir::CALIB_FIX_K1)
2034
- {
2035
- G.at <double >(6 *n + 6 ) = 0 ;
2036
- _flags -= omnidir::CALIB_FIX_K1;
2037
- }
2038
- if (_flags >= omnidir::CALIB_FIX_SKEW)
2039
- {
2040
- G.at <double >(6 *n + 2 ) = 0 ;
2041
- }
2042
- }
2043
-
2044
1996
// This function is from fisheye.cpp
2045
1997
void cv::omnidir::internal::subMatrix (const Mat& src, Mat& dst, const std::vector<int >& cols, const std::vector<int >& rows)
2046
1998
{
0 commit comments