MTF
AMParams.h
1 #include "ImageBase.h"
2 #include "IlluminationModel.h"
3 #include <memory>
4 
5 #define AM_LIKELIHOOD_ALPHA 1
6 #define AM_LIKELIHOOD_BETA 0
7 #define AM_DIST_FROM_LIKELIHOOD false
8 #define AM_LEARNING_RATE 0.5
9 
10 _MTF_BEGIN_NAMESPACE
11 
13  typedef shared_ptr<IlluminationModel> ILM;
15  double likelihood_alpha, likelihood_beta;
19  double learning_rate;
21  ILM ilm;
22  AMParams(int _resx, int _resy,
23  double _grad_eps = GRAD_EPS,
24  double _hess_eps = HESS_EPS,
25  bool _uchar_input = UCHAR_INPUT,
26  double _likelihood_alpha = AM_LIKELIHOOD_ALPHA,
27  double _likelihood_beta = AM_LIKELIHOOD_BETA,
28  bool _dist_from_likelihood = AM_DIST_FROM_LIKELIHOOD,
29  double _learning_rate = AM_LEARNING_RATE,
30  IlluminationModel *_ilm = nullptr);
31  AMParams(const AMParams *am_params = nullptr);
32 };
33 _MTF_END_NAMESPACE
34 
ILM ilm
optional parametric function of pixel values that can account for lighting changes ...
Definition: AMParams.h:21
bool dist_from_likelihood
use negative of likelihood as the distance measure
Definition: AMParams.h:17
double likelihood_alpha
multiplicative and additive factors for the exponent in the likelihood
Definition: AMParams.h:15
Illumination Model is a parametric function that transforms pixel values extracted from a patch to ac...
Definition: IlluminationModel.h:30
Definition: AMParams.h:12
double learning_rate
optional factor to control the rate of online learning
Definition: AMParams.h:19
Definition: ImageBase.h:21