contrib/oxl/osl/osl_harris_params.cxx
Go to the documentation of this file.
00001 #include "osl_harris_params.h"
00002 
00003 //:
00004 //  \file
00005 
00006 //: Make default osl_harris_params object
00007 osl_harris_params::osl_harris_params()
00008 {
00009   set_defaults();
00010 }
00011 
00012 osl_harris_params::osl_harris_params(int corner_count_max_,
00013                                      float gauss_sigma_)
00014 {
00015   set_defaults();
00016   corner_count_max = corner_count_max_;
00017   gauss_sigma = gauss_sigma_;
00018 }
00019 
00020 osl_harris_params::osl_harris_params(int corner_count_max_,
00021                                      float gauss_sigma_,
00022                                      float relative_minimum_,
00023                                      float scale_factor_)
00024 {
00025   set_defaults();
00026   corner_count_max = corner_count_max_;
00027   gauss_sigma = gauss_sigma_;
00028   relative_minimum = relative_minimum_;
00029   scale_factor = scale_factor_;
00030 }
00031 
00032 void osl_harris_params::set_defaults()
00033 {
00034   verbose = true;
00035   col_start_index = 0;
00036   row_start_index = 0;
00037   pab_emulate = false;
00038   //----------
00039   corner_count_max = 300;
00040   gauss_sigma = 0.7f;
00041   relative_minimum = 0.00001f;
00042   scale_factor = 0.04f;
00043   adaptive = true;
00044   adaptive_window_size = 32;
00045   density_thresh = 0.5f;
00046   corner_count_low = 40;
00047 }
00048 
00049 void osl_harris_params::set_adaptive(int corner_count_low_,
00050                                      int adaptive_window_size_,
00051                                      float density_thresh_)
00052 {
00053   adaptive = true;
00054   adaptive_window_size = adaptive_window_size_;
00055   density_thresh = density_thresh_;
00056   corner_count_low = corner_count_low_;
00057 }