1 #ifndef vgl_h_matrix_2d_optimize_lmq_h_ 2 #define vgl_h_matrix_2d_optimize_lmq_h_ 56 #endif // vgl_h_matrix_2d_optimize_lmq_h_ int minimum_number_of_correspondences() const override
Represents a homogeneous 2D line.
bool optimize_l(std::vector< vgl_homg_line_2d< double > > const &lines1, std::vector< vgl_homg_line_2d< double > > const &lines2, vgl_h_matrix_2d< double > &H) override
compute from matched lines.
vgl_h_matrix_2d_optimize_lmq(vgl_h_matrix_2d< double > const &initial_h)
Constructor from initial homography to be optimized.
bool optimize_pl(std::vector< vgl_homg_point_2d< double > > const &points1, std::vector< vgl_homg_point_2d< double > > const &points2, std::vector< vgl_homg_line_2d< double > > const &lines1, std::vector< vgl_homg_line_2d< double > > const &lines2, vgl_h_matrix_2d< double > &H) override
compute from matched points and lines.
bool optimize_p(std::vector< vgl_homg_point_2d< double > > const &points1, std::vector< vgl_homg_point_2d< double > > const &points2, vgl_h_matrix_2d< double > &H) override
compute from matched points.
Refine an initial 2d homography by minimizing projection error.
Represents a homogeneous 2D point.
bool optimize_h(std::vector< vgl_homg_point_2d< double > > const &points1, std::vector< vgl_homg_point_2d< double > > const &points2, vgl_h_matrix_2d< double > const &h_initial, vgl_h_matrix_2d< double > &h_optimized)
the main routine for carrying out the optimization. (used by the others).