Go to the documentation of this file.00001
00002 #ifndef vgl_h_matrix_2d_compute_4point_h_
00003 #define vgl_h_matrix_2d_compute_4point_h_
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include <vgl/algo/vgl_h_matrix_2d_compute.h>
00024
00025 class vgl_h_matrix_2d_compute_4point : public vgl_h_matrix_2d_compute
00026 {
00027 public:
00028 int minimum_number_of_correspondences() const { return 4; }
00029
00030 protected:
00031
00032 virtual
00033 bool compute_p(vcl_vector<vgl_homg_point_2d<double> > const& points1,
00034 vcl_vector<vgl_homg_point_2d<double> > const& points2,
00035 vgl_h_matrix_2d<double>& H);
00036
00037
00038 virtual
00039 bool compute_l(vcl_vector<vgl_homg_line_2d<double> > const& lines1,
00040 vcl_vector<vgl_homg_line_2d<double> > const& lines2,
00041 vgl_h_matrix_2d<double>& H);
00042
00043
00044 virtual
00045 bool compute_l(vcl_vector<vgl_homg_line_2d<double> > const& lines1,
00046 vcl_vector<vgl_homg_line_2d<double> > const& lines2,
00047 vcl_vector<double> const& weights,
00048 vgl_h_matrix_2d<double>& H);
00049
00050
00051 virtual
00052 bool compute_pl(vcl_vector<vgl_homg_point_2d<double> > const& points1,
00053 vcl_vector<vgl_homg_point_2d<double> > const& points2,
00054 vcl_vector<vgl_homg_line_2d<double> > const& lines1,
00055 vcl_vector<vgl_homg_line_2d<double> > const& lines2,
00056 vgl_h_matrix_2d<double>& H);
00057 };
00058
00059 #endif // vgl_h_matrix_2d_compute_4point_h_