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> 85 #ifndef DOXYGEN_SHOULD_SKIP_THIS 86 vpTemplateTrackerPointSuppMIInv *ptTemplateSupp;
87 vpTemplateTrackerPointSuppMIInv **ptTemplateSuppPyr;
149 : nbLvlPyr(0), l0Pyr(0), pyrInitialised(false), ptTemplate(NULL), ptTemplatePyr(NULL), ptTemplateInit(false),
150 templateSize(0), templateSizePyr(NULL), ptTemplateSelect(NULL), ptTemplateSelectPyr(NULL),
151 ptTemplateSelectInit(false), templateSelectSize(0), ptTemplateSupp(NULL), ptTemplateSuppPyr(NULL),
152 ptTemplateCompo(NULL), ptTemplateCompoPyr(NULL), zoneTracked(NULL), zoneTrackedPyr(NULL), pyr_IDes(NULL), H(),
153 Hdesire(), HdesirePyr(NULL), HLM(), HLMdesire(), HLMdesirePyr(NULL), HLMdesireInverse(),
154 HLMdesireInversePyr(NULL), G(), gain(0), thresholdGradient(0), costFunctionVerification(false), blur(false),
155 useBrent(false), nbIterBrent(0), taillef(0), fgG(NULL), fgdG(NULL), ratioPixelIn(0), mod_i(0), mod_j(0),
156 nbParam(), lambdaDep(0), iterationMax(0), iterationGlobale(0), diverge(false), nbIteration(0),
157 useCompositionnal(false), useInverse(false), Warp(NULL), p(), dp(), X1(), X2(), dW(), BI(), dIx(), dIy(),
188 void initFromPoints(
const vpImage<unsigned char> &I,
const std::vector<vpImagePoint> &v_ip,
bool delaunay =
false);
196 void setGaussianFilterSize(
unsigned int new_taill);
219 iterationGlobale = 0;
229 void setPyramidal(
unsigned int nlevels = 2,
unsigned int level_to_stop = 1)
232 l0Pyr = level_to_stop;
233 if (l0Pyr >= nlevels) {
234 std::cout <<
"Warning: level_to_stop: " << level_to_stop <<
" higher than level_to_start: " << nlevels - 1
235 <<
" (nlevels-1)" << std::endl;
236 std::cout <<
"Level to stop put to: " << nlevels - 1 << std::endl;
271 #if defined(VISP_BUILD_DEPRECATED_FUNCTIONS) 294 virtual void initPyramidal(
unsigned int nbLvl,
unsigned int l0);
bool ptTemplateSelectInit
Implementation of a matrix and operations on matrices.
double getRatioPixelIn() const
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
unsigned int getNbIteration() const
void setHDes(vpMatrix &tH)
Class to define colors available for display functionnalities.
std::vector< double > y_pos
vpMatrix inverseByLU() const
void setIterationMax(const unsigned int &n)
vpMatrix * HLMdesireInversePyr
vpTemplateTracker()
Default constructor.
static const vpColor green
unsigned int templateSize
vp_deprecated void setThresholdRMS(double threshold)
unsigned int iterationMax
std::vector< double > x_pos
vpTemplateTrackerZone * zoneTrackedPyr
vpTemplateTrackerZone zoneRef_
vpTemplateTrackerWarp * getWarp() const
unsigned int iterationGlobale
unsigned int * templateSizePyr
static void filter(const vpImage< double > &I, vpImage< double > &Iu, vpImage< double > &Iv, const vpMatrix &M, bool convolve=false)
vpMatrix HLMdesireInverse
vpTemplateTrackerPointCompo * ptTemplateCompo
Implementation of column vector and the associated operations.
vpTemplateTrackerZone * zoneTracked
unsigned int getNbParam() const
bool ** ptTemplateSelectPyr
vpImage< unsigned char > * pyr_IDes
void setp(const vpColVector &tp)
void setThresholdResidualDifference(double threshold)
vpTemplateTrackerWarp * Warp
static void computeHLM(const vpMatrix &H, const double &alpha, vpMatrix &HLM)
vpTemplateTrackerZone getZoneRef() const
vpTemplateTrackerPointCompo ** ptTemplateCompoPyr
void setPyramidal(unsigned int nlevels=2, unsigned int level_to_stop=1)
void setThresholdGradient(double threshold)
void setCostFunctionVerification(bool b)