17 x1_mat.resize(2, num_points);
18 x2_mat.resize(2, num_points);
20 for (
int i = 0; i < num_points; i++) {
25 LG <<
"x1: " << x1_mat;
26 LG <<
"x2: " << x2_mat;
30 x1_mat, x2_mat,
options, &H_mat);
34 memcpy(
H, H_mat.data(), 9 *
sizeof(
double));
CCL_NAMESPACE_BEGIN struct Options options
void libmv_homography2DFromCorrespondencesEuc(double(*x1)[2], double(*x2)[2], int num_points, double H[3][3])
Eigen::Matrix< double, 3, 3 > Mat3
bool EstimateHomography2DFromCorrespondences(const Mat &x1, const Mat &x2, const EstimateHomographyOptions &options, Mat3 *H)