10 enum class HistType{ Dirac, Bilinear, BSpline };
11 static const char* toString(HistType _hist_type);
32 bool weighted_mapping;
43 bool approx_dist_feat;
50 HistType _hist_type,
int _n_bins,
double _pre_seed,
51 bool _partition_of_unity,
bool _weighted_mapping,
52 bool _mapped_gradient,
bool _approx_dist_feat,
59 typedef double ElementType;
60 typedef double ResultType;
61 SCVDist(
const string &_name,
const unsigned int _patch_size,
62 const int _n_bins,
const bool _approx_dist_feat);
63 double operator()(
const double* a,
const double* b,
64 size_t size,
double worst_dist = -1)
const override;
66 const unsigned int patch_size;
68 const bool approx_dist_feat;
76 typedef SCVParams::HistType HistType;
78 SCV(
const ParamType *scv_params =
nullptr,
const int _n_channels = 1);
79 void initializePixVals(
const Matrix2Xd& init_pts)
override;
80 void initializePixGrad(
const Matrix2Xd &init_pts)
override;
81 void initializePixGrad(
const Matrix8Xd &warped_offset_pts)
override;
83 void updatePixGrad(
const Matrix2Xd &curr_pts)
override;
84 void updatePixGrad(
const Matrix8Xd &warped_offset_pts)
override;
86 void updateSimilarity(
bool prereq_only =
true)
override;
88 void updatePixHess(
const Matrix2Xd &curr_pts)
override;
89 using AppearanceModel::updatePixHess;
90 const DistType* getDistFunc()
override{
91 return new DistType(name, patch_size, params.n_bins, params.approx_dist_feat);
102 Matrix8Xd init_warped_offset_pts;
104 double hist_pre_seed;
106 VectorXd intensity_map;
111 VectorXd init_hist, curr_hist;
112 MatrixXd init_hist_mat, curr_hist_mat;
116 MatrixX2i _std_bspl_ids;
117 MatrixX2i _init_bspl_ids;
118 MatrixX2i _curr_bspl_ids;
Sum of Conditional Variance.
Definition: SCV.h:72
double pre_seed
initial value with which each bin of the joint histogram is pre-seeded to avoid numerical instabiliti...
Definition: SCV.h:28
int n_bins
no.
Definition: SCV.h:22
bool debug_mode
decides whether logging data will be printed for debugging purposes; only matters if logging option i...
Definition: SCV.h:46
Definition: AMParams.h:12
base class for appearance models that use the negative sum of squared differences ("SSD") or L2 norm ...
Definition: SSDBase.h:16
bool partition_of_unity
decides whether the partition of unity constraint has to be strictly observed for border bins; if ena...
Definition: SCV.h:25
HistType hist_type
method used for computing the joint histogram: Dirac: Dirac delta function that uses nearest neighbor...
Definition: SCV.h:16
MatrixXd curr_joint_hist
n_bins x n_bins joint histograms;
Definition: SCV.h:110
SCVParams(const AMParams *am_params, HistType _hist_type, int _n_bins, double _pre_seed, bool _partition_of_unity, bool _weighted_mapping, bool _mapped_gradient, bool _approx_dist_feat, bool _debug_mode)
value constructor