Go to the documentation of this file.00001
00002 #ifndef sdet_texture_classifier_params_h_
00003 #define sdet_texture_classifier_params_h_
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #include <gevd/gevd_param_mixin.h>
00014 #include <vcl_iosfwd.h>
00015 #include <vcl_vector.h>
00016 #include <vsl/vsl_binary_io.h>
00017
00018 class sdet_texture_classifier_params : public gevd_param_mixin
00019 {
00020 public:
00021 sdet_texture_classifier_params();
00022 sdet_texture_classifier_params(unsigned n_scales,
00023 float scale_interval,
00024 float angle_interval,
00025 float lambda0,
00026 float lambda1,
00027 float laplace_radius,
00028 float gauss_radius,
00029 float cutoff_per,
00030 bool signed_response,
00031 bool mag,
00032 bool fast,
00033 unsigned k,
00034 unsigned n_samples,
00035 unsigned block_size,
00036 float weight_offset);
00037 sdet_texture_classifier_params(const sdet_texture_classifier_params& old_params);
00038 ~sdet_texture_classifier_params() {}
00039
00040 bool SanityCheck();
00041 friend
00042 vcl_ostream& operator<<(vcl_ostream& os, const sdet_texture_classifier_params& imp);
00043 protected:
00044 void InitParams(unsigned n_scales,
00045 float scale_interval,
00046 float angle_interval,
00047 float lambda0,
00048 float lambda1,
00049 float laplace_radius,
00050 float gauss_radius,
00051 float cutoff_per,
00052 bool signed_response,
00053 bool mag,
00054 bool fast,
00055 unsigned k,
00056 unsigned n_samples,
00057 unsigned block_size,
00058 float weight_offset);
00059 public:
00060
00061
00062
00063 unsigned n_scales_;
00064
00065 float scale_interval_;
00066
00067 float angle_interval_;
00068
00069 float lambda0_;
00070
00071 float lambda1_;
00072
00073 float laplace_radius_;
00074
00075 float gauss_radius_;
00076
00077 float cutoff_per_;
00078
00079 bool signed_response_;
00080
00081 bool mag_;
00082
00083 bool fast_;
00084
00085 unsigned k_;
00086
00087 unsigned n_samples_;
00088
00089 unsigned block_size_;
00090
00091 float weight_offset_;
00092 };
00093
00094
00095 void vsl_b_write(vsl_b_ostream &os,
00096 const sdet_texture_classifier_params & tcp);
00097
00098
00099 void vsl_b_read(vsl_b_istream &is, sdet_texture_classifier_params & tcp);
00100
00101
00102 void vsl_print_summary(vcl_ostream& os,
00103 const sdet_texture_classifier_params & tcp);
00104
00105 #endif // sdet_texture_classifier_params_h_