diff --git a/modules/calib3d/src/dls.cpp b/modules/calib3d/src/dls.cpp index 704f73e48e..9881aac808 100644 --- a/modules/calib3d/src/dls.cpp +++ b/modules/calib3d/src/dls.cpp @@ -49,23 +49,6 @@ dls::~dls() // TODO Auto-generated destructor stub } -/*void dls::norm_z_vector() -{ - // make z into unit vectors from normalized pixel coords - for (int i = 0; i < N; ++i) - { - cv::Mat col_i = z.col(i); - double sr = std::pow(col_i.at(0), 2) + - std::pow(col_i.at(1), 2) + - std::pow(col_i.at(2), 2); - sr = std::sqrt(sr); - - z.at(0, i) /= sr; - z.at(1, i) /= sr; - z.at(2, i) /= sr; - } -}*/ - bool dls::compute_pose(cv::Mat& R, cv::Mat& t) { diff --git a/modules/calib3d/src/dls.h b/modules/calib3d/src/dls.h index aba7c7c571..a35c67a49d 100644 --- a/modules/calib3d/src/dls.h +++ b/modules/calib3d/src/dls.h @@ -46,8 +46,6 @@ private: mn.at(2) /= (double)N; } - //void norm_z_vector(); - // main algorithm cv::Mat LeftMultVec(const cv::Mat& v); void run_kernel(const cv::Mat& pp);