Subversion Repositories seema-scanner

Rev

Rev 74 | Rev 82 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 74 Rev 81
Line 214... Line 214...
214
        diff_mark.copyTo(b.rowRange(i*3, i*3+3));
214
        diff_mark.copyTo(b.rowRange(i*3, i*3+3));
215
    }
215
    }
216
 
216
 
217
    // solve for translation
217
    // solve for translation
218
    cv::solve(A, b, tau, cv::DECOMP_SVD);
218
    cv::solve(A, b, tau, cv::DECOMP_SVD);
-
 
219
 
-
 
220
    cv::Mat err_tau = b - (A*cv::Mat(tau));
-
 
221
    std::cout << err_tau << std::endl;
219
}
222
}
220
 
223
 
221
// Function to fit two sets of corresponding pose data.
224
// Function to fit two sets of corresponding pose data.
222
// Finds [Omega | tau], to minimize ||[R_mark | t_mark] - [Omega | tau][R | t]||^2
225
// Finds [Omega | tau], to minimize ||[R_mark | t_mark] - [Omega | tau][R | t]||^2
223
// Algorithm and notation according to Mili Shah, Comparing two sets of corresponding six degree of freedom data, CVIU 2011.
226
// Algorithm and notation according to Mili Shah, Comparing two sets of corresponding six degree of freedom data, CVIU 2011.