51 #ifndef vpHomography_hh
52 #define vpHomography_hh
54 #include <visp/vpHomogeneousMatrix.h>
55 #include <visp/vpPlane.h>
56 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
57 # include <visp/vpList.h>
177 static const double sing_threshold;
178 static const double threshold_rotation;
179 static const double threshold_displacement;
198 static void initRansac(
unsigned int n,
199 double *xb,
double *yb,
200 double *xa,
double *ya,
204 static void HartleyNormalization(
unsigned int n,
205 double *x,
double *y,
206 double *xn,
double *yn,
207 double &xg,
double &yg,
211 double xg1,
double yg1,
double coef1,
212 double xg2,
double yg2,
double coef2 ) ;
264 void load(std::ifstream &f) ;
268 void save(std::ofstream &f)
const ;
289 static void DLT(
unsigned int n,
290 double *xb,
double *yb ,
291 double *xa,
double *ya,
294 static void HartleyDLT(
unsigned int n,
295 double *xb,
double *yb ,
296 double *xa,
double *ya,
298 static void HLM(
unsigned int n,
299 double *xb,
double *yb,
300 double *xa,
double *ya ,
304 static void computeDisplacement(
const vpHomography &aHb,
310 static void computeDisplacement (
const vpHomography &aHb,
315 static void computeDisplacement(
const vpMatrix &H,
318 std::list<vpRotationMatrix> & vR,
319 std::list<vpTranslationVector> & vT,
320 std::list<vpColVector> & vN) ;
321 static double computeDisplacement(
unsigned int nbpoint,
329 static double computeDisplacement(
unsigned int nbpoint,
339 static double computeRotation(
unsigned int nbpoint,
347 static bool degenerateConfiguration(
vpColVector &x,
unsigned int *ind) ;
348 static bool degenerateConfiguration(
vpColVector &x,
unsigned int *ind,
double threshold_area);
350 static bool ransac(
unsigned int n,
351 double *xb,
double *yb,
352 double *xa,
double *ya ,
354 int consensus = 1000,
355 double threshold = 1e-6
358 static bool ransac(
unsigned int n,
359 double *xb,
double *yb,
360 double *xa,
double *ya ,
364 int consensus = 1000,
365 double epsilon = 1e-6,
366 double areaThreshold = 0.0);
368 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
372 vp_deprecated
static void computeDisplacement(
const vpMatrix H,
379 #endif // VISP_BUILD_DEPRECATED_FUNCTIONS
Definition of the vpMatrix class.
void init()
Initialization of the object matrix.
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
Provide simple list management.
int print(std::ostream &s, unsigned int length, char const *intro=0)
Class that defines what is a point.
The vpRotationMatrix considers the particular case of a rotation matrix.
This class aims to compute the homography wrt.two images.
void insert(const vpMatrix &A, const unsigned int r, const unsigned int c)
Class that provides a data structure for the column vectors as well as a set of operations on these v...
The pose is a complete representation of every rigid motion in the euclidian space.
vpMatrix operator/(const double x) const
Cij = Aij / x (A is unchanged)
vpMatrix operator*(const vpMatrix &B) const
This class defines the container for a plane geometrical structure.
Class that consider the case of a translation vector.
Class that consider the case of the parameterization for the rotation.