32 PCA(
const ParamType *pca_params =
nullptr,
const int _n_channels = 1);
35 double getLikelihood()
const override;
38 void initializeSimilarity()
override;
41 void updateSimilarity(
bool prereq_only =
true)
override;
42 void updateModel(
const Matrix2Xd& curr_pts)
override;
48 void setFirstIter()
override;
51 void clearFirstIter()
override;
76 int cv_img_type_uchar, cv_img_type_float;
82 void incrementalPCA();
86 void sklm(MatrixXd &U, VectorXd &sigma, VectorXd &mu_A,
87 MatrixXd &B,
int &n,
double ff,
int max_n_eig);
90 void display_images(
const VectorXd &curr_image,
91 const VectorXdM &error_image);
int batch_size
batch size for the eigen basis update
Definition: PCA.h:12
bool show_basis
show all patches in the eigen basis
Definition: PCA.h:16
bool U_available
flag to indicate whether the basis U is available
Definition: PCA.h:74
VectorXd sigma
Sigma.
Definition: PCA.h:72
Definition: AMParams.h:12
MatrixXd addi_patches
additional patches B, d x m
Definition: PCA.h:59
int n_prev_patches
number of prev patches, n
Definition: PCA.h:65
double f_factor
forgetting factor
Definition: PCA.h:14
PCAParams(const AMParams *am_params, int _n_eigenvec, int _batch_size, double _f_factor, bool _show_basis)
value constructor
MatrixXd U
eigen basis U, initialized to be empty
Definition: PCA.h:70
int n_eigenvec
The number of eigen basis.
Definition: PCA.h:10
unsigned int batch_size
number of additional patches, m. constant in this case
Definition: PCA.h:67
VectorXd max_patch_eachframe
the patch in max similarity of particle each frame
Definition: PCA.h:63
VectorXd mean_prev_patches
mean of prev patches, miu_A
Definition: PCA.h:61