39 #include <visp3/core/vpImageTools.h>
40 #include <visp3/tt/vpTemplateTrackerSSDInverseCompositional.h>
44 :
vpTemplateTrackerSSD(warp), compoInitialised(false), HInv(), HCompInverse(), useTemplateSelect(false)
55 for (
unsigned int point = 0; point <
templateSize; point++) {
63 for (
unsigned int it = 0; it <
nbParam; it++)
64 for (
unsigned int jt = 0; jt <
nbParam; jt++)
74 for (
unsigned int point = 0; point <
templateSize; point++) {
102 unsigned int iteration = 0;
110 double evolRMS_init = 0;
111 double evolRMS_prec = 0;
112 double evolRMS_delta;
115 unsigned int Nbpoint = 0;
118 Warp->computeCoeff(
p);
119 for (
unsigned int point = 0; point <
templateSize; point++) {
131 if ((i2 >= 0) && (j2 >= 0) && (i2 < I.
getHeight() - 1) && (j2 < I.
getWidth() - 1)) {
138 double er = (Tij - IW);
139 for (
unsigned int it = 0; it <
nbParam; it++)
140 dp[it] += er * pt->
HiG[it];
160 if (iteration == 0) {
165 evolRMS_delta = std::fabs(
evolRMS - evolRMS_prec);
unsigned int getCols() const
void resize(unsigned int nrows, unsigned int ncols, bool flagNullify=true, bool recopy_=true)
unsigned int getRows() const
Implementation of column vector and the associated operations.
static void filter(const vpImage< ImageType > &I, vpImage< FilterType > &If, const vpArray2D< FilterType > &M, bool convolve=false, const vpImage< bool > *p_mask=nullptr)
unsigned int getWidth() const
Type getValue(unsigned int i, unsigned int j) const
unsigned int getHeight() const
Implementation of a matrix and operations on matrices.
vpMatrix inverseByLU() const
static void computeHLM(const vpMatrix &H, const double &alpha, vpMatrix &HLM)
virtual void getParamInverse(const vpColVector &p, vpColVector &p_inv) const =0
virtual void getdW0(const int &v, const int &u, const double &dv, const double &du, double *dIdW)=0
virtual void warpX(const int &v1, const int &u1, double &v2, double &u2, const vpColVector &p)=0
virtual void pRondp(const vpColVector &p1, const vpColVector &p2, vpColVector &p12) const =0
void computeEvalRMS(const vpColVector &p)
void computeOptimalBrentGain(const vpImage< unsigned char > &I, vpColVector &tp, double tMI, vpColVector &direction, double &alpha)
unsigned int iterationMax
void initPosEvalRMS(const vpColVector &p)
vpTemplateTrackerPoint * ptTemplate
vpTemplateTrackerWarp * Warp
unsigned int templateSize
Error that can be emitted by the vpTracker class and its derivatives.
@ notEnoughPointError
Not enough point to track.