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)) {
80 erreur += (Tij - IW) * (Tij - IW);
84 ratioPixelIn =
static_cast<double>(Nbpoint) / static_cast<double>(templateSize);
88 return erreur / Nbpoint;
95 unsigned int Nbpoint = 0;
102 Warp->computeCoeff(tp);
103 for (
unsigned int point = 0; point <
templateSize; point++) {
108 Warp->computeDenom(
X1, tp);
113 if ((j2 < I.
getWidth() - 1) && (i2 < I.
getHeight() - 1) && (i2 > 0) && (j2 > 0)) {
116 erreur += (Tij - IW) * (Tij - IW);
122 return erreur / Nbpoint;
virtual void warpX(const int &v1, const int &u1, double &v2, double &u2, const vpColVector &p)=0
void resize(unsigned int nrows, unsigned int ncols, bool flagNullify=true, bool recopy_=true)
Type getValue(unsigned int i, unsigned int j) const
vpTemplateTrackerPoint * ptTemplate
vpTemplateTrackerPoint ** ptTemplatePyr
unsigned int templateSize
unsigned int * templateSizePyr
void resize(unsigned int i, bool flagNullify=true)
unsigned int getHeight() const
Implementation of column vector and the associated operations.
vpTemplateTrackerWarp * Warp
unsigned int getWidth() const
void resize(unsigned int i, bool flagNullify=true)