27 bool weighted_mapping;
38 bool approx_dist_feat;
45 bool _use_bspl,
int _n_bins,
double _pre_seed,
46 bool _partition_of_unity,
bool _weighted_mapping,
47 bool _mapped_gradient,
bool _approx_dist_feat,
54 typedef double ElementType;
55 typedef double ResultType;
56 RSCVDist(
const string &_name,
const unsigned int _patch_size,
57 const int _n_bins,
const bool _approx_dist_feat);
58 double operator()(
const double* a,
const double* b,
59 size_t size,
double worst_dist = -1)
const override;
61 const unsigned int patch_size;
63 const bool approx_dist_feat;
73 RSCV(
const ParamType *rscv_params =
nullptr,
const int _n_channels = 1);
75 void initializePixVals(
const Matrix2Xd& init_pts)
override;
76 void updatePixVals(
const Matrix2Xd& curr_pts)
override;
78 void updatePixGrad(
const Matrix2Xd &curr_pts)
override;
79 void updatePixHess(
const Matrix2Xd &curr_pts)
override;
81 void updatePixGrad(
const Matrix8Xd &warped_offset_pts)
override;
82 void updatePixHess(
const Matrix2Xd& curr_pts,
83 const Matrix16Xd &warped_offset_pts)
override;
85 const DistType* getDistFunc()
override{
86 return new DistType(name, patch_size, params.n_bins, params.approx_dist_feat);
88 void updateDistFeat(
double* feat_addr)
override;
90 const double* getDistFeat()
override{
91 return params.approx_dist_feat ? It.data() : It_orig.data();
99 VectorXd intensity_map;
104 VectorXd init_hist, curr_hist;
105 MatrixXd init_hist_mat, curr_hist_mat;
110 MatrixX2i _std_bspl_ids, _init_bspl_ids, _curr_bspl_ids;
Reversed Sum of Conditional Variance.
Definition: RSCV.h:67
double pre_seed
initial value with which each bin of the joint histogram is pre-seeded to avoid numerical instabiliti...
Definition: RSCV.h:23
MatrixXd curr_joint_hist
n_bins x n_bins joint histograms;
Definition: RSCV.h:103
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: RSCV.h:20
void updateDistFeat() override
computes a "distance" vector using the current image patch such that, when the distance vectors corre...
Definition: RSCV.h:89
RSCVParams(const AMParams *am_params, bool _use_bspl, 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
bool debug_mode
decides whether logging data will be printed for debugging purposes; only matters if logging option i...
Definition: RSCV.h:41
bool use_bspl
as the kernel function for Parzen density estimation
Definition: RSCV.h:11
int n_bins
no.
Definition: RSCV.h:17