45 #ifndef vpTemplateTracker_hh 46 #define vpTemplateTracker_hh 50 #include <visp3/core/vpImageFilter.h> 51 #include <visp3/tt/vpTemplateTrackerHeader.h> 52 #include <visp3/tt/vpTemplateTrackerWarp.h> 53 #include <visp3/tt/vpTemplateTrackerZone.h> 80 #ifndef DOXYGEN_SHOULD_SKIP_THIS 81 vpTemplateTrackerPointSuppMIInv *ptTemplateSupp;
82 vpTemplateTrackerPointSuppMIInv **ptTemplateSuppPyr;
176 : nbLvlPyr(0), l0Pyr(0), pyrInitialised(false), ptTemplate(NULL), ptTemplatePyr(NULL), ptTemplateInit(false),
177 templateSize(0), templateSizePyr(NULL), ptTemplateSelect(NULL), ptTemplateSelectPyr(NULL),
178 ptTemplateSelectInit(false), templateSelectSize(0), ptTemplateSupp(NULL), ptTemplateSuppPyr(NULL),
179 ptTemplateCompo(NULL), ptTemplateCompoPyr(NULL), zoneTracked(NULL), zoneTrackedPyr(NULL), pyr_IDes(NULL), H(),
180 Hdesire(), HdesirePyr(NULL), HLM(), HLMdesire(), HLMdesirePyr(NULL), HLMdesireInverse(),
181 HLMdesireInversePyr(NULL), G(), gain(0), thresholdGradient(0), costFunctionVerification(false), blur(false),
182 useBrent(false), nbIterBrent(0), taillef(0), fgG(NULL), fgdG(NULL), ratioPixelIn(0), mod_i(0), mod_j(0),
183 nbParam(), lambdaDep(0), iterationMax(0), iterationGlobale(0), diverge(false), nbIteration(0),
184 useCompositionnal(false), useInverse(false), Warp(NULL), p(), dp(), X1(), X2(), dW(), BI(), dIx(), dIy(),
215 void initFromPoints(
const vpImage<unsigned char> &I,
const std::vector<vpImagePoint> &v_ip,
bool delaunay =
false);
223 void setGaussianFilterSize(
unsigned int new_taill);
246 iterationGlobale = 0;
256 void setPyramidal(
unsigned int nlevels = 2,
unsigned int level_to_stop = 1)
259 l0Pyr = level_to_stop;
260 if (l0Pyr >= nlevels) {
261 std::cout <<
"Warning: level_to_stop: " << level_to_stop <<
" higher than level_to_start: " << nlevels - 1
262 <<
" (nlevels-1)" << std::endl;
263 std::cout <<
"Level to stop put to: " << nlevels - 1 << std::endl;
294 virtual void initPyramidal(
unsigned int nbLvl,
unsigned int l0);
bool ptTemplateSelectInit
Implementation of a matrix and operations on matrices.
void setSampling(int sample_i, int sample_j)
void setNbIterBrent(const unsigned int &b)
bool costFunctionVerification
unsigned int templateSelectSize
void getGaussianBluredImage(const vpImage< unsigned char > &I)
vpTemplateTrackerPoint * ptTemplate
vpTemplateTrackerPoint ** ptTemplatePyr
void setHDes(vpMatrix &tH)
Class to define colors available for display functionnalities.
void setIterationMax(const unsigned int &n)
vpMatrix * HLMdesireInversePyr
vpTemplateTracker()
Default constructor.
static const vpColor green
unsigned int templateSize
unsigned int iterationMax
vpTemplateTrackerZone * zoneTrackedPyr
vpTemplateTrackerZone zoneRef_
unsigned int getNbParam() const
unsigned int getNbIteration() const
unsigned int iterationGlobale
double getRatioPixelIn() const
unsigned int * templateSizePyr
vpMatrix HLMdesireInverse
vpTemplateTrackerPointCompo * ptTemplateCompo
Implementation of column vector and the associated operations.
vpMatrix inverseByLU() const
vpTemplateTrackerZone * zoneTracked
bool ** ptTemplateSelectPyr
static void filter(const vpImage< double > &I, vpImage< double > &Iu, vpImage< double > &Iv, const vpMatrix &M, const bool convolve=false)
vpTemplateTrackerZone getZoneRef() const
vpImage< unsigned char > * pyr_IDes
void setp(const vpColVector &tp)
vpTemplateTrackerWarp * Warp
static void computeHLM(const vpMatrix &H, const double &alpha, vpMatrix &HLM)
vpTemplateTrackerPointCompo ** ptTemplateCompoPyr
void setPyramidal(unsigned int nlevels=2, unsigned int level_to_stop=1)
vpTemplateTrackerWarp * getWarp() const
void setThresholdGradient(double threshold)
void setCostFunctionVerification(bool b)