1 #ifndef vgl_h_matrix_1d_compute_h_ 2 #define vgl_h_matrix_1d_compute_h_ 25 # include <vcl_msvc_warnings.h> 71 std::vector<vgl_homg_point_1d<double> > pt1; pt1.reserve(
length);
72 std::vector<vgl_homg_point_1d<double> > pt2; pt2.reserve(
length);
73 for (
unsigned int i=0;i<
length; ++i) {
74 pt1.emplace_back(p1[i],1.0);
75 pt2.emplace_back(p2[i],1.0);
81 #endif // vgl_h_matrix_1d_compute_h_ bool compute(const double p1[], const double p2[], unsigned int length, vgl_h_matrix_1d< double > &H)
nonhomogeneous interface: given point correspondences in p1,p2, returns H.
virtual ~vgl_h_matrix_1d_compute()=default
2x2 line-to-line projectivity
A class to hold a line-to-line projective transformation matrix and to perform common operations usin...
void verbose(bool v)
set this to true for verbose run-time information; default is false.
a point in homogeneous 1-D space, i.e., a homogeneous pair (x,w)
vgl_h_matrix_1d< double > compute(std::vector< vgl_homg_point_1d< double > > const &p1, std::vector< vgl_homg_point_1d< double > > const &p2)
homography from matched points - return h_matrix.
bool compute(const std::vector< vgl_homg_point_1d< double > > &p1, const std::vector< vgl_homg_point_1d< double > > &p2, vgl_h_matrix_1d< double > &H)
principal interface: given point correspondences in p1,p2, returns H.
vgl_h_matrix_1d_compute()
bool compute_array_dbl(const double p1[], const double p2[], unsigned int length, vgl_h_matrix_1d< double > &H)
virtual bool compute_cool_homg(const std::vector< vgl_homg_point_1d< double > > &, const std::vector< vgl_homg_point_1d< double > > &, vgl_h_matrix_1d< double > &H)=0
Represents a homogeneous 1-D point, i.e., a homogeneous pair (x,w).
double length(v const &a)
Return the length of a vector.