vgl_h_matrix_1d_compute_3point.h
Go to the documentation of this file.
1 // This is core/vgl/algo/vgl_h_matrix_1d_compute_3point.h
2 #ifndef vgl_h_matrix_1d_compute_3point_h_
3 #define vgl_h_matrix_1d_compute_3point_h_
4 //:
5 // \file
6 // \brief Calculate the line projectivity which matches three 1D point correspondences
7 //
8 // \author
9 // F. Schaffalitzky, RRG
10 //
11 // \verbatim
12 // Modifications
13 // 23 Mar 2003 - J.L. Mundy - preparing for upgrade to vgl
14 // computations restricted to vgl_homg_point_1d<double>
15 // Seems somewhat overdoing it to template the transform
16 // solvers since double is needed for robust computation
17 // 23 Jun 2003 - Peter Vanroose - made compute_cool_homg pure virtual
18 // \endverbatim
19 
21 
22 //: Calculate the line projectivity which matches three 1D point correspondences
23 // To obtain the H-matrix from 3 point pairs, call the compute() method from
24 // the parent class vgl_h_matrix_1d_compute.
26 {
27  public:
28  vgl_h_matrix_1d_compute_3point(void) = default;
29  ~vgl_h_matrix_1d_compute_3point() override = default;
30  protected:
31  bool
32  compute_cool_homg(const std::vector<vgl_homg_point_1d<double> > & points1,
33  const std::vector<vgl_homg_point_1d<double> > & points2,
34  vgl_h_matrix_1d<double>& H) override;
35 };
36 
37 #endif // vgl_h_matrix_1d_compute_3point_h_
bool compute_cool_homg(const std::vector< vgl_homg_point_1d< double > > &points1, const std::vector< vgl_homg_point_1d< double > > &points2, vgl_h_matrix_1d< double > &H) override
A class to hold a line-to-line projective transformation matrix and to perform common operations usin...
Definition: vgl_algo_fwd.h:10
vgl_h_matrix_1d_compute_3point(void)=default
Calculate the line projectivity which matches three 1D point correspondences.
Virtual base class of classes to generate a line-to-line projectivity from a set of matched points.
Represents a homogeneous 1-D point, i.e., a homogeneous pair (x,w).
Definition: vgl_fwd.h:7
~vgl_h_matrix_1d_compute_3point() override=default