42 #include <visp3/core/vpDebug.h> 43 #include <visp3/core/vpTrackingException.h> 44 #include <visp3/core/vpVelocityTwistMatrix.h> 45 #include <visp3/mbt/vpMbEdgeKltTracker.h> 47 #if defined(VISP_HAVE_MODULE_KLT) && (defined(VISP_HAVE_OPENCV) && (VISP_HAVE_OPENCV_VERSION >= 0x020100)) 50 : thresholdKLT(2.), thresholdMBT(2.), m_maxIterKlt(30), w_mbt(), w_klt(), m_error_hybrid(), m_w_hybrid()
85 unsigned int i = (
unsigned int)
scales.size();
121 unsigned int i = (
unsigned int)
scales.size();
150 unsigned int nbrow = 0;
151 for (std::list<vpMbtDistanceLine *>::iterator it =
lines[lvl].begin(); it !=
lines[lvl].end(); ++it) {
160 for (std::list<vpMbtDistanceCylinder *>::const_iterator it =
cylinders[lvl].begin(); it !=
cylinders[lvl].end();
170 for (std::list<vpMbtDistanceCircle *>::const_iterator it =
circles[lvl].begin(); it !=
circles[lvl].end(); ++it) {
266 #ifdef VISP_HAVE_XML2 285 std::cout <<
" *********** Parsing XML for Mb Edge Tracker ************ " << std::endl;
286 xmlp.
parse(configFile);
322 xmlp.
getMe(meParser);
338 vpTRACE(
"You need the libXML2 to read the config file %s", configFile);
346 const unsigned int lvl)
352 for (std::list<vpMbtDistanceLine *>::const_iterator it =
lines[lvl].begin(); it !=
lines[lvl].end(); ++it) {
359 for (std::list<vpMbtDistanceCylinder *>::const_iterator it =
cylinders[lvl].begin(); it !=
cylinders[lvl].end();
367 for (std::list<vpMbtDistanceCircle *>::const_iterator it =
circles[lvl].begin(); it !=
circles[lvl].end(); ++it) {
416 for (std::list<vpMbtDistanceLine *>::const_iterator it =
lines[lvl].begin(); it !=
lines[lvl].end(); ++it) {
417 if ((*it)->isTracked()) {
419 unsigned int indexLine = 0;
422 for (
unsigned int a = 0; a < l->
meline.size(); a++) {
423 std::list<vpMeSite>::iterator itListLine;
425 itListLine = l->
meline[a]->getMeList().begin();
427 for (
unsigned int i = 0; i < l->
nbFeature[a]; i++) {
428 wmean += w[n + indexLine];
430 if (w[n + indexLine] < 0.5) {
456 for (std::list<vpMbtDistanceCylinder *>::const_iterator it =
cylinders[lvl].begin(); it !=
cylinders[lvl].end();
458 if ((*it)->isTracked()) {
461 std::list<vpMeSite>::iterator itListCyl1;
462 std::list<vpMeSite>::iterator itListCyl2;
464 itListCyl1 = cy->
meline1->getMeList().begin();
465 itListCyl2 = cy->
meline2->getMeList().begin();
469 for (
unsigned int i = 0; i < cy->
nbFeaturel1; i++) {
472 if (w[n + i] < 0.5) {
493 for (
unsigned int i = cy->
nbFeaturel1; i < cy->nbFeature; i++) {
496 if (w[n + i] < 0.5) {
522 for (std::list<vpMbtDistanceCircle *>::const_iterator it =
circles[lvl].begin(); it !=
circles[lvl].end(); ++it) {
523 if ((*it)->isTracked()) {
526 std::list<vpMeSite>::iterator itListCir;
529 itListCir = ci->
meEllipse->getMeList().begin();
533 for (
unsigned int i = 0; i < ci->
nbFeature; i++) {
536 if (w[n + i] < 0.5) {
570 const unsigned int lvl)
575 if (nbrow < 4 && nbInfos < 4) {
577 }
else if (nbrow < 4)
580 unsigned int totalNbRows = nbrow + 2 * nbInfos;
582 double residu_1 = -1;
583 unsigned int iter = 0;
593 L_mbt.
resize(nbrow, 6,
false,
false);
594 R_mbt.
resize(nbrow,
false);
598 L_klt.
resize(2 * nbInfos, 6,
false,
false);
599 R_klt.
resize(2 * nbInfos,
false);
603 vpRobust robust_mbt(0), robust_klt(0);
623 double residuMBT = 0;
624 double residuKLT = 0;
644 robust_klt.
resize(2 * nbInfos);
649 while (((
int)((residu - residu_1) * 1e8) != 0) && (iter <
m_maxIter)) {
654 unsigned int shift = 0;
695 unsigned int cpt = 0;
696 while (cpt < (nbrow + 2 * nbInfos)) {
697 if (cpt < (
unsigned)nbrow) {
705 bool reStartFromLastIncrement =
false;
708 if (reStartFromLastIncrement) {
712 if (!reStartFromLastIncrement) {
716 for (
unsigned int i = 0; i < R_mbt.
getRows(); i++)
717 residuMBT += fabs(R_mbt[i]);
728 for (
unsigned int i = 0; i < R_klt.
getRows(); i++)
729 residuKLT += fabs(R_klt[i]);
735 L.
insert(L_klt, nbrow, 0);
738 unsigned int cpt = 0;
739 while (cpt < (nbrow + 2 * nbInfos)) {
740 if (cpt < (
unsigned)nbrow) {
753 LVJ_true = (L * cVo *
oJo);
762 for (
unsigned int i = 0; i < weighted_error.
getRows(); i++) {
768 for (
unsigned int j = 0; j < 6; j += 1) {
769 L[i][j] *= m_w_hybrid[i];
774 residu = sqrt(num / den);
776 computeVVSPoseEstimation(
isoJoIdentity, iter, L, LTL, weighted_error,
m_error_hybrid, m_error_prev, LTR, mu, v,
799 "computeVVSInteractionMatrixAndR" 800 "esidu() should not be called!");
829 unsigned int nbrow = 0;
855 const unsigned int lvl)
873 factor.
resize(nbrow,
false);
877 for (std::list<vpMbtDistanceLine *>::const_iterator it =
lines[lvl].begin(); it !=
lines[lvl].end(); ++it) {
878 if ((*it)->isTracked()) {
885 int index = *itindex;
896 unsigned int indexFeature = 0;
897 for (
unsigned int a = 0; a < l->
meline.size(); a++) {
898 std::list<vpMeSite>::const_iterator itListLine;
899 if (l->
meline[a] != NULL) {
900 itListLine = l->
meline[a]->getMeList().begin();
902 for (
unsigned int i = 0; i < l->
nbFeature[a]; i++) {
916 for (std::list<vpMbtDistanceCylinder *>::const_iterator it =
cylinders[lvl].begin(); it !=
cylinders[lvl].end();
918 if ((*it)->isTracked()) {
923 std::list<vpMeSite>::const_iterator itCyl1;
924 std::list<vpMeSite>::const_iterator itCyl2;
926 itCyl1 = cy->
meline1->getMeList().begin();
927 itCyl2 = cy->
meline2->getMeList().begin();
930 for (
unsigned int i = 0; i < cy->
nbFeature; i++) {
933 if (i < cy->nbFeaturel1) {
948 for (std::list<vpMbtDistanceCircle *>::const_iterator it =
circles[lvl].begin(); it !=
circles[lvl].end(); ++it) {
949 if ((*it)->isTracked()) {
954 std::list<vpMeSite>::const_iterator itCir;
956 itCir = ci->
meEllipse->getMeList().begin();
959 for (
unsigned int i = 0; i < ci->
nbFeature; i++) {
982 for (std::list<vpMbtDistanceLine *>::const_iterator it =
lines[lvl].begin(); it !=
lines[lvl].end(); ++it) {
983 if ((*it)->isTracked()) {
987 for (
unsigned int j = 0; j < 6; j++) {
988 L[n + i][j] = l->
L[i][j];
989 error[n + i] = l->
error[i];
996 for (std::list<vpMbtDistanceCylinder *>::const_iterator it =
cylinders[lvl].begin(); it !=
cylinders[lvl].end();
998 if ((*it)->isTracked()) {
1001 for (
unsigned int i = 0; i < cy->
nbFeature; i++) {
1002 for (
unsigned int j = 0; j < 6; j++) {
1003 L[n + i][j] = cy->
L[i][j];
1004 error[n + i] = cy->
error[i];
1010 for (std::list<vpMbtDistanceCircle *>::const_iterator it =
circles[lvl].begin(); it !=
circles[lvl].end(); ++it) {
1011 if ((*it)->isTracked()) {
1014 for (
unsigned int i = 0; i < ci->
nbFeature; i++) {
1015 for (
unsigned int j = 0; j < 6; j++) {
1016 L[n + i][j] = ci->
L[i][j];
1017 error[n + i] = ci->
error[i];
1073 const int idFace,
const std::string &name)
1089 const std::string &name)
1108 const bool displayFullModel)
1110 for (
unsigned int i = 0; i <
scales.size(); i += 1) {
1114 (*it)->display(I, cMo_, camera, col, thickness, displayFullModel);
1117 for (std::list<vpMbtDistanceCylinder *>::const_iterator it =
cylinders[
scaleLevel].begin();
1119 (*it)->display(I, cMo_, camera, col, thickness, displayFullModel);
1122 for (std::list<vpMbtDistanceCircle *>::const_iterator it =
circles[
scaleLevel].begin();
1124 (*it)->display(I, cMo_, camera, col, thickness, displayFullModel);
1131 for (std::list<vpMbtDistanceKltPoints *>::const_iterator it =
kltPolygons.begin(); it !=
kltPolygons.end(); ++it) {
1145 #ifdef VISP_HAVE_OGRE 1164 const bool displayFullModel)
1166 for (
unsigned int i = 0; i <
scales.size(); i += 1) {
1170 (*it)->display(I, cMo_, camera, col, thickness, displayFullModel);
1173 for (std::list<vpMbtDistanceCylinder *>::const_iterator it =
cylinders[
scaleLevel].begin();
1175 (*it)->display(I, cMo_, camera, col, thickness, displayFullModel);
1178 for (std::list<vpMbtDistanceCircle *>::const_iterator it =
circles[
scaleLevel].begin();
1180 (*it)->display(I, cMo_, camera, col, thickness, displayFullModel);
1187 for (std::list<vpMbtDistanceKltPoints *>::const_iterator it =
kltPolygons.begin(); it !=
kltPolygons.end(); ++it) {
1201 #ifdef VISP_HAVE_OGRE 1235 #if (VISP_HAVE_OPENCV_VERSION < 0x020408) 1237 cvReleaseImage(&
cur);
1243 for (std::list<vpMbtDistanceKltPoints *>::const_iterator it =
kltPolygons.begin(); it !=
kltPolygons.end(); ++it) {
1245 if (kltpoly != NULL) {
1255 if (kltPolyCylinder != NULL) {
1256 delete kltPolyCylinder;
1258 kltPolyCylinder = NULL;
1280 for (
unsigned int i = 0; i <
scales.size(); i += 1) {
1282 for (std::list<vpMbtDistanceLine *>::const_iterator it =
lines[i].begin(); it !=
lines[i].end(); ++it) {
1289 for (std::list<vpMbtDistanceCylinder *>::const_iterator it =
cylinders[i].begin(); it !=
cylinders[i].end();
1297 for (std::list<vpMbtDistanceCircle *>::const_iterator it =
circles[i].begin(); it !=
circles[i].end(); ++it) {
1326 #elif !defined(VISP_BUILD_SHARED_LIBS) 1329 void dummy_vpMbEdgeKltTracker(){};
1330 #endif // VISP_HAVE_OPENCV bool m_computeInteraction
void setWindowName(const Ogre::String &n)
void trackSecondLoop(const vpImage< unsigned char > &I, vpMatrix &L, vpColVector &_error, vpHomogeneousMatrix &cMo, const unsigned int lvl=0)
virtual void initCircle(const vpPoint &, const vpPoint &, const vpPoint &, const double r, const int idFace=0, const std::string &name="")
void setQuality(const double &q)
void postTrackingMbt(vpColVector &w, const unsigned int level=0)
Implementation of a matrix and operations on matrices.
void displayMovingEdges(const vpImage< unsigned char > &I)
void displayPrimitive(const vpImage< unsigned char > &_I)
void setMovingEdge(const vpMe &me)
bool getFovClipping() const
vpMeSiteState getState() const
Parse an Xml file to extract configuration parameters of a mbtConfig object.Data parser for the model...
unsigned int nbFeature
The number of moving edges.
unsigned int nbFeatureTotal
The number of moving edges.
void upScale(const unsigned int _scale)
void parse(const char *filename)
virtual void initFaceFromCorners(vpMbtPolygon &polygon)
void MEstimator(const vpRobustEstimatorType method, const vpColVector &residues, vpColVector &weights)
Compute the weights according a residue vector and a PsiFunction.
void setHarrisFreeParameter(double harris_k)
bool isAppearing(const unsigned int i)
double getAngleAppear() const
bool hasEnoughPoints() const
bool hasEnoughPoints() const
vpMbHiddenFaces< vpMbtPolygon > faces
Set of faces describing the object.
bool Reinit
Indicates if the line has to be reinitialized.
void setMeanWeight2(const double wmean)
Implementation of an homogeneous matrix and operations on such kind of matrices.
std::vector< std::list< vpMbtDistanceCylinder * > > cylinders
Vector of the tracked cylinders.
std::list< int > Lindex_polygon
Index of the faces which contain the line.
vpMatrix L
The interaction matrix.
unsigned int getWindowSize() const
Performs search in a given direction(normal) for a given distance(pixels) for a given 'site'...
void getMe(vpMe &_ecm) const
virtual void initFaceFromCorners(vpMbtPolygon &polygon)
unsigned int getBlockSize() const
void resize(const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true, const bool recopy_=true)
Class to define colors available for display functionnalities.
void setMaxFeatures(const int maxCount)
std::list< vpMbtDistanceKltCylinder * > kltCylinders
unsigned int m_maxIterKlt
The maximum iteration of the virtual visual servoing stage.
virtual void initCylinder(const vpPoint &, const vpPoint &, const double, const int, const std::string &name="")
vpHomogeneousMatrix cMo
The current pose.
bool postTracking(const vpImage< unsigned char > &I, vpColVector &w)
unsigned int getMaxFeatures() const
void displayMovingEdges(const vpImage< unsigned char > &I)
double thresholdKLT
The threshold used in the robust estimation of KLT.
std::vector< const vpImage< unsigned char > * > Ipyramid
vpColVector error
The error vector.
void setMinDistance(double minDistance)
error that can be emited by ViSP classes.
vpMbtMeEllipse * meEllipse
The moving edge containers.
Manage a cylinder used in the model-based tracker.
vpMbScanLine & getMbScanLineRenderer()
unsigned int getRows() const
vpHomogeneousMatrix inverse() const
Manage the line of a polygon used in the model-based tracker.
unsigned int nbFeature
The number of moving edges.
void getCameraParameters(vpCameraParameters &_cam) const
virtual void setClipping(const unsigned int &flags)
vpColVector m_w_hybrid
Robust weights.
bool useOgre
Use Ogre3d for visibility tests.
bool hasNearClippingDistance() const
virtual void setCameraParameters(const vpCameraParameters &camera)
void reInitModel(const vpImage< unsigned char > &I, const std::string &cad_name, const vpHomogeneousMatrix &cMo_, const bool verbose=false)
Definition of the vpSubMatrix vpSubMatrix class provides a mask on a vpMatrix all properties of vpMat...
bool computeCovariance
Flag used to specify if the covariance matrix has to be computed or not.
vpMe me
The moving edges parameters.
void updateMovingEdge(const vpImage< unsigned char > &I)
void initInteractionMatrixError()
vpColVector w_mbt
Robust weights for Edge.
virtual void reinit(const vpImage< unsigned char > &I)
virtual void setFarClippingDistance(const double &dist)
virtual ~vpMbEdgeKltTracker()
void downScale(const unsigned int _scale)
Implementation of a polygon of the model containing points of interest. It is used by the model-based...
Class that defines what is a point.
vpMatrix L
The interaction matrix.
vpCameraParameters cam
The camera parameters.
void computeClippedPolygons(const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam)
void setQuality(double qualityLevel)
virtual void init(const vpImage< unsigned char > &I)
vpHomogeneousMatrix ctTc0
unsigned int getMaskBorder() const
double getAngleDisappear() const
unsigned int nbFeaturel1
The number of moving edges on line 1.
Implementation of an homography and operations on homographies.
vpAROgre * getOgreContext()
void setPyramidLevels(const unsigned int &pL)
virtual void setMinPolygonAreaThresh(const double minPolygonAreaThresh, const std::string &name="")
virtual void computeVVSInit()
Manage a circle used in the model-based tracker.
void insert(const vpMatrix &A, const unsigned int r, const unsigned int c)
vpMatrix oJo
The Degrees of Freedom to estimate.
std::vector< bool > scales
Vector of scale level to use for the multi-scale tracking.
bool Reinit
Indicates if the circle has to be reinitialized.
Error that can be emited by the vpTracker class and its derivates.
Implementation of a polygon of the model used by the model-based tracker.
double getNearClippingDistance() const
void initMovingEdge(const vpImage< unsigned char > &I, const vpHomogeneousMatrix &_cMo)
void computeInteractionMatrixAndResidu(const vpHomogeneousMatrix &cMc0, vpColVector &_R, vpMatrix &_J)
void displayPrimitive(const vpImage< unsigned char > &_I)
void setWindowSize(const unsigned int &w)
bool useScanLine
Use Scanline for visibility tests.
vpVelocityTwistMatrix buildFrom(const vpTranslationVector &t, const vpRotationMatrix &R)
double getFarClippingDistance() const
static double sqr(double x)
double minLineLengthThresholdGeneral
Minimum line length threshold for LOD mode (general setting)
vpColVector w_klt
Robust weights for KLT.
void setAngleDisappear(const double &adisappear)
vpColVector error
The error vector.
virtual void initFaceFromCorners(vpMbtPolygon &polygon)
virtual void setPose(const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cdMo)
virtual void track(const vpImage< unsigned char > &I)
unsigned int maskBorder
Erosion of the mask.
virtual void display(const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, const vpColor &col, const unsigned int thickness=1, const bool displayFullModel=false)
Generic class defining intrinsic camera parameters.
void cleanPyramid(std::vector< const vpImage< unsigned char > *> &_pyramid)
void computeInteractionMatrixError(const vpHomogeneousMatrix &cMo)
Implementation of a polygon of the model containing points of interest. It is used by the model-based...
double m_initialMu
Initial Mu for Levenberg Marquardt optimization loop.
vpMbtMeLine * meline1
The moving edge containers (first line of the cylinder)
double m_lambda
Gain of the virtual visual servoing stage.
void setHarrisParam(const double &hp)
void setMinDistance(const double &mD)
void loadConfigFile(const char *configFile)
void setCameraParameters(const vpCameraParameters &_cam)
double angleAppears
Angle used to detect a face appearance.
vpKltOpencv tracker
Points tracker.
virtual bool isVisible(const vpHomogeneousMatrix &cMo, const double alpha, const bool &modulo=false, const vpCameraParameters &cam=vpCameraParameters(), const vpImage< unsigned char > &I=vpImage< unsigned char >())
void setPyramidLevels(const int pyrMaxLevel)
void setState(const vpMeSiteState &flag)
void reinitMovingEdge(const vpImage< unsigned char > &I, const vpHomogeneousMatrix &_cMo)
void displayMovingEdges(const vpImage< unsigned char > &I)
unsigned int m_maxIter
Maximum number of iterations of the virtual visual servoing stage.
unsigned int getCurrentNumberPoints() const
static double rad(double deg)
virtual void setMinLineLengthThresh(const double minLineLengthThresh, const std::string &name="")
void setMeanWeight1(const double wmean)
std::vector< std::list< vpMbtDistanceCircle * > > circles
Vector of the tracked circles.
virtual void setCameraParameters(const vpCameraParameters &cam)
void computeProjectionError(const vpImage< unsigned char > &_I)
void insert(unsigned int i, const vpColVector &v)
cv::Mat cur
Temporary OpenCV image for fast conversion.
virtual void initFaceFromLines(vpMbtPolygon &polygon)
unsigned int getCurrentNumberPoints() const
void setMaxFeatures(const unsigned int &mF)
void computeHomography(const vpHomogeneousMatrix &_cTc0, vpHomography &cHc0)
virtual void initCylinder(const vpPoint &p1, const vpPoint &p2, const double radius, const int idFace=0, const std::string &name="")
bool closeToImageBorder(const vpImage< unsigned char > &I, const unsigned int threshold)
std::list< vpMbtDistanceCircle * > circles_disp
Vector of the circles used here only to display the full model.
void setWindowSize(const int winSize)
double minPolygonAreaThresholdGeneral
Minimum polygon area threshold for LOD mode (general setting)
static double deg(double rad)
void initInteractionMatrixError()
bool displayFeatures
If true, the features are displayed.
virtual void loadModel(const char *modelFile, const bool verbose=false)
unsigned int getHeight() const
virtual void initCylinder(const vpPoint &, const vpPoint &, const double r, const int idFace, const std::string &name="")
double getMinDistance() const
void setCameraParameters(const vpCameraParameters &cam)
void preTracking(const vpImage< unsigned char > &I)
virtual unsigned int getNbPolygon() const
double getMinPolygonAreaThreshold() const
bool applyLodSettingInConfig
Implementation of column vector and the associated operations.
void setAngleAppear(const double &aappear)
void computeInteractionMatrixError(const vpHomogeneousMatrix &cMo)
vpColVector m_error_hybrid
(s - s*)
double getHarrisParam() const
virtual void initCircle(const vpPoint &p1, const vpPoint &p2, const vpPoint &p3, const double radius, const int idFace=0, const std::string &name="")
unsigned int initMbtTracking(const unsigned int level=0)
virtual void computeVVSPoseEstimation(const bool isoJoIdentity_, const unsigned int iter, vpMatrix &L, vpMatrix <L, vpColVector &R, const vpColVector &error, vpColVector &error_prev, vpColVector <R, double &mu, vpColVector &v, const vpColVector *const w=NULL, vpColVector *const m_w_prev=NULL)
bool hasFarClippingDistance() const
unsigned int trackFirstLoop(const vpImage< unsigned char > &I, vpColVector &factor, const unsigned int lvl=0)
vpMbHiddenFaces< vpMbtPolygon > * hiddenface
Pointer to the list of faces.
void setBlockSize(const int blockSize)
static vpHomogeneousMatrix direct(const vpColVector &v)
virtual void computeCovarianceMatrixVVS(const bool isoJoIdentity_, const vpColVector &w_true, const vpHomogeneousMatrix &cMoPrev, const vpMatrix &L_true, const vpMatrix &LVJ_true, const vpColVector &error)
void setMeanWeight(const double _wmean)
Contains an M-Estimator and various influence function.
unsigned int nbvisiblepolygone
Number of polygon (face) currently visible.
double angleDisappears
Angle used to detect a face disappearance.
virtual void initFaceFromLines(vpMbtPolygon &polygon)
vpMbtPolygon * polygon
Pointer to the polygon that define a face.
bool postTracking(const vpImage< unsigned char > &I, vpColVector &w_mbt, vpColVector &w_klt, const unsigned int lvl=0)
void setMeanWeight(const double w_mean)
vpColVector error
The error vector.
std::vector< std::list< vpMbtDistanceLine * > > lines
unsigned int getPyramidLevels() const
double getQuality() const
bool Reinit
Indicates if the line has to be reinitialized.
virtual void init(const vpImage< unsigned char > &I)
double getMinLineLengthThreshold() const
std::vector< vpMbtMeLine * > meline
The moving edge container.
void setBlockSize(const unsigned int &bs)
unsigned int clippingFlag
Flags specifying which clipping to used.
void initPyramid(const vpImage< unsigned char > &_I, std::vector< const vpImage< unsigned char > *> &_pyramid)
void trackMovingEdge(const vpImage< unsigned char > &I)
void displayOgre(const vpHomogeneousMatrix &cMo)
unsigned int nbFeaturel2
The number of moving edges on line 2.
virtual void initFaceFromLines(vpMbtPolygon &polygon)
void setThreshold(const double noise_threshold)
void resize(unsigned int n_data)
Resize containers for sort methods.
vpMbtMeLine * meline2
The moving edge containers (second line of the cylinder)
virtual void computeVVSInteractionMatrixAndResidu()
unsigned int getWidth() const
bool useLodGeneral
True if LOD mode is enabled.
vpMatrix L
The interaction matrix.
void computeScanLineRender(const vpCameraParameters &cam, const unsigned int &w, const unsigned int &h)
std::vector< unsigned int > nbFeature
The number of moving edges.
void computeInteractionMatrixError(const vpHomogeneousMatrix &cMo, const vpImage< unsigned char > &I)
void initInteractionMatrixError()
virtual void computeVVSCheckLevenbergMarquardt(const unsigned int iter, vpColVector &error, const vpColVector &m_error_prev, const vpHomogeneousMatrix &cMoPrev, double &mu, bool &reStartFromLastIncrement, vpColVector *const w=NULL, const vpColVector *const m_w_prev=NULL)
std::list< vpMbtDistanceKltPoints * > kltPolygons
void setMovingEdge(const vpMe &_ecm)
bool isoJoIdentity
Boolean to know if oJo is identity (for fast computation)
void setMaskBorder(const unsigned int &mb)
void computeInteractionMatrixAndResidu(vpColVector &_R, vpMatrix &_J)
vpHomogeneousMatrix c0Mo
Initial pose.
double thresholdMBT
The threshold used in the robust estimation of MBT.
virtual void setNearClippingDistance(const double &dist)
virtual void setPose(const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cdMo)
void resize(const unsigned int i, const bool flagNullify=true)
virtual void setLod(const bool useLod, const std::string &name="")
void computeFov(const unsigned int &w, const unsigned int &h)