contrib/rpl/rgrl/rgrl_est_homo2d_lm.h
Go to the documentation of this file.
00001 #ifndef rgrl_est_homo2d_lm_h_
00002 #define rgrl_est_homo2d_lm_h_
00003 
00004 //:
00005 // \file
00006 // \author Gehua Yang
00007 // \date   Nov 2004
00008 
00009 #include <rgrl/rgrl_estimator.h>
00010 
00011 //: homography2D transform estimator
00012 //
00013 class rgrl_est_homo2d_lm
00014   : public rgrl_nonlinear_estimator
00015 {
00016 public:
00017   //: Default constructor
00018   //
00019   rgrl_est_homo2d_lm( bool with_grad = true );
00020 
00021   //: Estimates homography transformation
00022   //
00023   // \sa rgrl_estimator::estimate
00024   //
00025   rgrl_transformation_sptr
00026   estimate( rgrl_set_of<rgrl_match_set_sptr> const& matches,
00027             rgrl_transformation const& cur_transform ) const;
00028 
00029   // import base class estimate function
00030   using rgrl_nonlinear_estimator::estimate;
00031 
00032   //: Type of transformation estimated by this estimator.
00033   const vcl_type_info& transformation_type() const;
00034 
00035   // Defines type-related functions
00036   rgrl_type_macro( rgrl_est_homo2d_lm, rgrl_nonlinear_estimator );
00037 
00038 private:
00039 
00040   bool with_grad_;
00041 };
00042 
00043 #endif