40 #include <visp3/tt/vpTemplateTrackerSSD.h>
62 Warp->computeCoeff(tp);
63 for (
unsigned int point = 0; point <
templateSize; point++) {
68 Warp->computeDenom(
X1, tp);
73 if ((i2 >= 0) && (j2 >= 0) && (i2 < I.
getHeight() - 1) && (j2 < I.
getWidth() - 1)) {
79 erreur += (Tij - IW) * (Tij - IW);
87 return erreur / Nbpoint;
94 unsigned int Nbpoint = 0;
101 Warp->computeCoeff(tp);
102 for (
unsigned int point = 0; point <
templateSize; point++) {
107 Warp->computeDenom(
X1, tp);
112 if ((j2 < I.
getWidth() - 1) && (i2 < I.
getHeight() - 1) && (i2 > 0) && (j2 > 0)) {
115 erreur += (Tij - IW) * (Tij - IW);
121 return erreur / Nbpoint;
void resize(unsigned int nrows, unsigned int ncols, bool flagNullify=true, bool recopy_=true)
Implementation of column vector and the associated operations.
void resize(unsigned int i, bool flagNullify=true)
unsigned int getWidth() const
Type getValue(unsigned int i, unsigned int j) const
unsigned int getHeight() const
void resize(unsigned int i, bool flagNullify=true)
virtual void warpX(const int &v1, const int &u1, double &v2, double &u2, const vpColVector &p)=0
vpTemplateTrackerPoint ** ptTemplatePyr
unsigned int * templateSizePyr
vpTemplateTrackerPoint * ptTemplate
vpTemplateTrackerWarp * Warp
unsigned int templateSize