55 #include <visp/vpHomogeneousMatrix.h>
56 #include <visp/vpHomography.h>
57 #include <visp/vpPoint.h>
58 #include <visp/vpRGBa.h>
59 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
60 # include <visp/vpList.h>
104 std::vector<vpPoint> c3d ;
107 bool computeCovariance;
111 unsigned int ransacNbInlierConsensus;
113 std::vector<vpPoint> ransacInliers;
114 double ransacThreshold;
128 void addPoint(
const vpPoint& P) ;
138 bool coplanar(
int &coplanar_plane_type) ;
165 void setDistanceToPlaneForCoplanarityTest(
double d) ;
197 if(!computeCovariance)
198 vpTRACE(
"Warning : The covariance matrix has not been computed. See setCovarianceComputation() to do it.");
200 return covarianceMatrix;
214 static void findMatch(std::vector<vpPoint> &p2D,
215 std::vector<vpPoint> &p3D,
216 const unsigned int &numberOfInlierToReachAConsensus,
217 const double &threshold,
218 unsigned int &ninliers,
219 std::vector<vpPoint> &listInliers,
221 const int &maxNbTrials = 10000);
223 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
228 static void initRansac(
const unsigned int n,
229 const double *x,
const double *y,
230 const unsigned int m,
231 const double *X,
const double *Y,
const double *Z,
239 static bool degenerateConfiguration(
vpColVector &x,
unsigned int *ind) ;
241 static void ransac(
const unsigned int n,
242 const double *x,
const double *y,
243 const unsigned int m,
244 const double *X,
const double *Y,
const double *Z,
245 const int numberOfInlierToReachAConsensus,
246 const double threshold,
247 unsigned int &ninliers,
252 vp_deprecated
static void ransac(
const unsigned int n,
254 const unsigned int m,
256 const int numberOfInlierToReachAConsensus,
257 const double threshold,
258 unsigned int &ninliers,
259 std::list<vpPoint> &Pi,
262 vp_deprecated
static void ransac(std::list<vpPoint> &p,
263 std::list<vpPoint> &P,
264 const int numberOfInlierToReachAConsensus,
265 const double threshold,
266 unsigned int &ninliers,
267 std::list<vpPoint> &lPi,
Definition of the vpMatrix class.
double residual
compute the residual in meter
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
Class to define colors available for display functionnalities.
static const vpColor none
error that can be emited by ViSP classes.
void setRansacThreshold(const double &t)
std::list< vpPoint > listP
array of point (use here class vpPoint)
Class that defines what is a point.
double lambda
parameters use for the virtual visual servoing approach
unsigned int getRansacNbInliers() const
Class used for pose computation from N points (pose from point only).
Generic class defining intrinsic camera parameters.
double distanceToPlaneForCoplanarityTest
vpMatrix getCovarianceMatrix() const
void setVvsIterMax(int nb)
unsigned int npt
number of point used in pose computation
void setRansacMaxTrials(const int &rM)
void setRansacNbInliersToReachConsensus(const unsigned int &nbC)
Class that provides a data structure for the column vectors as well as a set of operations on these v...
std::vector< vpPoint > getRansacInliers() const
void setCovarianceComputation(const bool &flag)