42 #include <visp/vpTemplateTrackerSSDForwardCompositional.h>
43 #include <visp/vpImageFilter.h>
75 std::cout<<
"Compositionnal tracking no initialised\nUse InitCompo(vpImage<unsigned char> &I) function"<<std::endl;
89 unsigned int iteration=0;
99 Warp->computeCoeff(
p);
128 double *tempt=
new double[
nbParam];
129 for(
unsigned int it=0;it<
nbParam;it++)
130 tempt[it] =dW[0][it]*dIWx+dW[1][it]*dIWy;
132 for(
unsigned int it=0;it<
nbParam;it++)
133 for(
unsigned int jt=0;jt<
nbParam;jt++)
134 H[it][jt]+=tempt[it]*tempt[jt];
137 for(
unsigned int it=0;it<
nbParam;it++)
146 if(Nbpoint==0)std::cout<<
"plus de point dans template suivi"<<std::endl;
156 std::cout<<
"probleme inversion"<<std::endl;
virtual void dWarpCompo(const vpColVector &X1, const vpColVector &X2, const vpColVector &ParamM, const double *dwdp0, vpMatrix &dW)=0
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
static void getGradYGauss2D(const vpImage< unsigned char > &I, vpImage< double > &dIy, const double *gaussianKernel, const double *gaussianDerivativeKernel, unsigned int size)
static void getGradXGauss2D(const vpImage< unsigned char > &I, vpImage< double > &dIx, const double *gaussianKernel, const double *gaussianDerivativeKernel, unsigned int size)
unsigned int templateSize
unsigned int iterationMax
virtual void pRondp(const vpColVector &p1, const vpColVector &p2, vpColVector &pres) const =0
static void filter(const vpImage< double > &I, vpImage< double > &Iu, vpImage< double > &Iv, const vpMatrix &M)
vpMatrix inverseByLU() const
unsigned int getHeight() const
virtual void getdWdp0(const int &i, const int &j, double *dIdW)=0
vpTemplateTrackerWarp * Warp
static void computeHLM(const vpMatrix &H, const double &alpha, vpMatrix &HLM)