42 #include <visp/vpTemplateTrackerSSDInverseCompositional.h>
43 #include <visp/vpImageTools.h>
46 :
vpTemplateTrackerSSD(warp), compoInitialised(false), HInv(), HCompInverse(), useTemplateSelect(false),
47 evolRMS(0), x_pos(), y_pos(), threshold_RMS(1e-8)
72 for(
unsigned int it=0;it<
nbParam;it++)
73 for(
unsigned int jt=0;jt<
nbParam;jt++)
94 for(
unsigned int it=0;it<
nbParam;it++)
100 for(
unsigned int it=0;it<
nbParam;it++)
115 unsigned int Nbpoint=0;
122 unsigned int iteration=0;
135 Warp->computeCoeff(
p);
158 for(
unsigned int it=0;it<
nbParam;it++)
159 dp[it]+=er*pt->
HiG[it];
196 x_pos.resize(nb_corners);
197 y_pos.resize(nb_corners);
199 Warp->computeCoeff(p_);
205 for (
unsigned int j=0; j<3; j++) {
208 Warp->computeDenom(
X1,p_);
220 Warp->computeCoeff(p_);
227 for (
unsigned int j=0; j<3; j++) {
230 Warp->computeDenom(
X1,p_);
Definition of the vpMatrix class.
void resize(const unsigned int nrows, const unsigned int ncols, const bool nullify=true)
void getTriangle(unsigned int i, vpTemplateTrackerTriangle &T) const
unsigned int getWidth() const
vpTemplateTrackerPoint * ptTemplate
virtual void warpX(const int &i, const int &j, double &i2, double &j2, const vpColVector &ParamM)=0
void computeOptimalBrentGain(const vpImage< unsigned char > &I, vpColVector &tp, double tMI, vpColVector &direction, double &alpha)
Type getValue(double i, double j) const
vpColVector getCorner(unsigned int i) const
virtual void getParamInverse(const vpColVector &ParamM, vpColVector &ParamMinv) const =0
unsigned int templateSize
unsigned int iterationMax
virtual void pRondp(const vpColVector &p1, const vpColVector &p2, vpColVector &pres) const =0
Error that can be emited by the vpTracker class and its derivates.
unsigned int getNbTriangle() const
static void filter(const vpImage< double > &I, vpImage< double > &Iu, vpImage< double > &Iv, const vpMatrix &M)
virtual void getdW0(const int &i, const int &j, const double &dy, const double &dx, double *dIdW)=0
Class that provides a data structure for the column vectors as well as a set of operations on these v...
vpMatrix inverseByLU() const
vpTemplateTrackerZone * zoneTracked
unsigned int getHeight() const
vpTemplateTrackerWarp * Warp
static void computeHLM(const vpMatrix &H, const double &alpha, vpMatrix &HLM)