41 #include <visp3/tt/vpTemplateTrackerSSD.h> 63 Warp->computeCoeff(tp);
64 for (
unsigned int point = 0; point <
templateSize; point++) {
69 Warp->computeDenom(
X1, tp);
74 if ((i2 >= 0) && (j2 >= 0) && (i2 < I.
getHeight() - 1) && (j2 < I.
getWidth() - 1)) {
81 erreur += ((double)Tij - IW) * ((double)Tij - IW);
89 return erreur / Nbpoint;
96 unsigned int Nbpoint = 0;
103 Warp->computeCoeff(tp);
104 for (
unsigned int point = 0; point <
templateSize; point++) {
109 Warp->computeDenom(
X1, tp);
114 if ((j2 < I.
getWidth() - 1) && (i2 < I.
getHeight() - 1) && (i2 > 0) && (j2 > 0)) {
118 erreur += ((double)Tij - IW) * ((double)Tij - IW);
124 return erreur / Nbpoint;
unsigned int getWidth() const
vpTemplateTrackerPoint * ptTemplate
vpTemplateTrackerPoint ** ptTemplatePyr
virtual void warpX(const int &i, const int &j, double &i2, double &j2, const vpColVector &ParamM)=0
void resize(const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true, const bool recopy_=true)
unsigned int templateSize
Type getValue(unsigned int i, unsigned int j) const
void resize(const unsigned int i, const bool flagNullify=true)
unsigned int * templateSizePyr
Implementation of column vector and the associated operations.
unsigned int getHeight() const
vpTemplateTrackerWarp * Warp
void resize(const unsigned int i, const bool flagNullify=true)