1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Filtering solutions with imaginary part

This commit is contained in:
edgarriba
2014-07-28 12:01:39 +02:00
parent 5f35bed5c5
commit 0427b70a2f
+2 -2
View File
@@ -149,8 +149,8 @@ void dls::run_kernel(const cv::Mat& pp)
// TODO: check imaginari part to filter solutions
//if (imag(V(2,k)) == 0)
//const double epsilon = 1e-4;
//if( eigenvec_i.at<double>(1,k) >= -epsilon && eigenvec_i.at<double>(1,k) <= epsilon )
const double epsilon = 1e-4;
if( eigenval_i.at<double>(k,0) >= -epsilon && eigenval_i.at<double>(k,0) <= epsilon )
{ // it should work without checking imaginari part
double stmp[3];