00001 // This is gel/vmal/vmal_kl_params.h 00002 #ifndef vmal_kl_params_h_ 00003 #define vmal_kl_params_h_ 00004 //-------------------------------------------------------------------------------- 00005 //: 00006 // \file 00007 // \brief Interface to set Kanade-Lucas parameters 00008 // \author 00009 // L. Guichard 00010 //-------------------------------------------------------------------------------- 00011 extern "C" { 00012 #include <vgel/kl/klt.h> 00013 } 00014 00015 class vmal_kl_params 00016 { 00017 public: 00018 00019 //--------------------------------------------------------------------------- 00020 //: Default constructor. Parameters set to defaults 00021 //--------------------------------------------------------------------------- 00022 vmal_kl_params(); 00023 00024 //--------------------------------------------------------------------------- 00025 //: Copy constructor 00026 //--------------------------------------------------------------------------- 00027 vmal_kl_params(const vmal_kl_params & params); 00028 00029 //--------------------------------------------------------------------------- 00030 //: Destructor. 00031 //--------------------------------------------------------------------------- 00032 ~vmal_kl_params(); 00033 00034 //--------------------------------------------------------------------------- 00035 //: Set the parameters to default values 00036 //--------------------------------------------------------------------------- 00037 void set_defaults(); 00038 00039 //--------------------------------------------------------------------------- 00040 //: Parameters 00041 //--------------------------------------------------------------------------- 00042 00043 int numpoints; 00044 int search_range; 00045 00046 int mindist; 00047 int window_width, window_height; 00048 bool sequentialMode; 00049 bool smoothBeforeSelecting; 00050 bool writeInternalImages; 00051 int min_eigenvalue; 00052 float min_determinant; 00053 float min_displacement; 00054 int max_iterations; 00055 float max_residue; 00056 float grad_sigma; 00057 float smooth_sigma_fact; 00058 float pyramid_sigma_fact; 00059 bool replaceLostPoints; 00060 int nSkippedPixels; 00061 int borderx; 00062 int bordery; 00063 int nPyramidLevels; 00064 int subsampling; 00065 bool verbose; 00066 }; 00067 00068 #endif // vmal_kl_params_h_