MTF
NNParams.h
1 #ifndef MTF_NN_PARAMS_H
2 #define MTF_NN_PARAMS_H
3 
4 #include "mtf/SM/GNNParams.h"
5 #include "mtf/Macros/common.h"
6 
7 _MTF_BEGIN_NAMESPACE
8 
9 struct NNParams{
10 
12 
13  int n_samples;
14 
16  int max_iters;
18  double epsilon;
19 
20  vectorvd ssm_sigma;
21  vectorvd ssm_mean;
22  vectord pix_sigma;
23 
24  bool additive_update;
25  int show_samples;
26 
32 
33  int remove_samples;
34 
35  bool save_index;
36  bool load_index;
37  std::string saved_index_dir;
38 
41  bool debug_mode;
42 
43  NNParams(
44  const gnn::GNNParams *_gnn,
45  int _n_samples,
46  int _max_iters,
47  double _epsilon,
48  const vectorvd &_ssm_sigma,
49  const vectorvd &_ssm_mean,
50  const vectord &_pix_sigma,
51  bool _additive_update,
52  int _show_samples,
53  int _add_samples_gap,
54  int _n_samples_to_add,
55  int _remove_samples,
56  bool load_index,
57  bool _save_index,
58  std::string _saved_index_dir,
59  bool _debug_mode);
60  NNParams(const NNParams *params = nullptr);
65  bool processDistributions(vector<VectorXd> &state_sigma,
66  vector<VectorXd> &state_mean, VectorXi &distr_n_samples,
67  unsigned int &n_distr, unsigned int ssm_state_size);
68 };
69 
70 _MTF_END_NAMESPACE
71 
72 #endif
73 
bool processDistributions(vector< VectorXd > &state_sigma, vector< VectorXd > &state_mean, VectorXi &distr_n_samples, unsigned int &n_distr, unsigned int ssm_state_size)
parse the provided mean and sigma and apply several priors to get the final parameters for all distri...
int max_iters
maximum iterations of the NN algorithm to run for each frame
Definition: NNParams.h:16
Definition: GNNParams.h:9
bool debug_mode
decides whether logging data will be printed for debugging purposes; only matters if logging is enabl...
Definition: NNParams.h:41
Definition: NNParams.h:9
double epsilon
maximum L2 norm of the state update vector at which to stop the iterations
Definition: NNParams.h:18
GNN with FLANN support.
Definition: FGNN.h:12
int n_samples_to_add
no. of samples added to the index at each update
Definition: NNParams.h:31
int add_samples_gap
gap between frames at which the index is updated with new samples 0 disables the addition of samples ...
Definition: NNParams.h:29