39 #include <visp3/tt/vpTemplateTrackerZNCC.h>
64 Warp->computeCoeff(tp);
93 "Cannot get cost: size = 0")) ;
96 moyTij=moyTij/Nbpoint;
100 double var1=0,var2=0;
106 Warp->computeDenom(
X1,tp);
118 nom+=(Tij-moyTij)*(IW-moyIW);
120 var1+=(IW-moyIW)*(IW-moyIW);
121 var2+=(Tij-moyTij)*(Tij-moyTij);
128 return -nom/sqrt(var1*var2);
unsigned int getWidth() const
void resize(const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true)
vpTemplateTrackerPoint * ptTemplate
virtual void warpX(const int &i, const int &j, double &i2, double &j2, const vpColVector &ParamM)=0
error that can be emited by ViSP classes.
Type getValue(double i, double j) const
vpTemplateTrackerZNCC(vpTemplateTrackerWarp *warp)
unsigned int templateSize
void resize(const unsigned int i, const bool flagNullify=true)
Implementation of column vector and the associated operations.
unsigned int getHeight() const
vpTemplateTrackerWarp * Warp
double getCost(const vpImage< unsigned char > &I, const vpColVector &tp)
void resize(const unsigned int i, const bool flagNullify=true)