1 #ifndef vgl_h_matrix_2d_compute_linear_h_ 2 #define vgl_h_matrix_2d_compute_linear_h_ 44 std::vector<double>
const& weights,
65 std::vector<double>
const& w,
73 #endif // vgl_h_matrix_2d_compute_linear_h_
Represents a homogeneous 2D line.
int minimum_number_of_correspondences() const override
bool compute_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.
vgl_h_matrix_2d_compute_linear(bool allow_ideal_points=false)
Construct a vgl_h_matrix_2d_compute_linear object.
bool solve_weighted_least_squares(std::vector< vgl_homg_line_2d< double > > const &l1, std::vector< vgl_homg_line_2d< double > > const &l2, std::vector< double > const &w, vgl_h_matrix_2d< double > &H)
for lines, the solution should be weighted by line length.
bool solve_linear_problem(int equ_count, std::vector< vgl_homg_point_2d< double > > const &p1, std::vector< vgl_homg_point_2d< double > > const &p2, vgl_h_matrix_2d< double > &H)
Assumes all corresponding points have equal weight.
contains class vgl_h_matrix_2d_compute
bool compute_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.
Represents a homogeneous 2D point.
bool compute_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.