contrib/gel/vmal/vmal_homog2d.h
Go to the documentation of this file.
00001 #ifndef vmal_homog2d_h_
00002 #define vmal_homog2d_h_
00003 
00004 //:
00005 //  \file
00006 // \author
00007 //   L. Guichard
00008 //--------------------------------------------------------------------------------
00009 
00010 #include <vnl/vnl_double_3.h>
00011 #include <vnl/vnl_double_3x3.h>
00012 #include <vcl_vector.h>
00013 
00014 class vmal_homog2d
00015 {
00016 //***************************************************************************
00017 // Initialization
00018 //***************************************************************************
00019 public:
00020 //---------------------------------------------------------------------------
00021 //: Constructors
00022 //---------------------------------------------------------------------------
00023   vmal_homog2d();
00024 
00025 //---------------------------------------------------------------------------
00026 //: Destructor
00027 //---------------------------------------------------------------------------
00028   virtual ~vmal_homog2d();
00029 
00030 //---------------------------------------------------------------------------
00031 //: Compute the 2d homography from to set of matched points.
00032 // A point pima1[i] in the first image match with the point pima2[i]
00033 // in the second image.
00034 //---------------------------------------------------------------------------
00035   void compute_homo(const vcl_vector<vnl_double_3 > & pima1,
00036             const vcl_vector<vnl_double_3 > & pima2,
00037             vnl_double_3x3 &hmatrix);
00038 };
00039 
00040 #endif // vmal_homog2d_h_