bazar
1.3.1
|
Static class for the estimation of homographies.Provides functions to estimate the homography. More...
#include <homography.h>
Public Member Functions | |
homography () | |
homography (float u1, float v1, float up1, float vp1, float u2, float v2, float up2, float vp2, float u3, float v3, float up3, float vp3, float u4, float v4, float up4, float vp4) | |
~homography () | |
bool | estimate (float u1, float v1, float up1, float vp1, float u2, float v2, float up2, float vp2, float u3, float v3, float up3, float vp3, float u4, float v4, float up4, float vp4) |
Estimates H from 4 point correspondences. | |
void | set_match_number (int n) |
Estimation from n correspondences. See homography description. | |
void | add_match (float u, float v, float up, float vp) |
void | release_matches (void) |
void | estimate (void) |
void | transform_point (float u, float v, float *up, float *vp) |
Computes H(u,v) | |
void | transform_point (double u, double v, double *up, double *vp) |
float | cvmGet (const int i, const int j) |
void | cvmSet (const int i, const int j, const float val) |
void | cvmSet (const int i, const int j, const double val) |
Friends | |
ostream & | operator<< (ostream &o, const homography &H) |
float | cvmGet (const homography *H, const int i, const int j) |
void | cvmSet (const homography *H, const int i, const int j, const float val) |
void | cvmSet (const homography *H, const int i, const int j, const double val) |
Static class for the estimation of homographies.
Provides functions to estimate the homography.
Estimates H using a linear method.
H0
!=
NULL
, it is used to initialize H. H0 can be an affinity matrix. c
is the parameter of the Tukey robust estimator. Definition at line 55 of file homography.h.
homography::homography | ( | void | ) |
Definition at line 33 of file homography.cpp.
homography::homography | ( | float | u1, |
float | v1, | ||
float | up1, | ||
float | vp1, | ||
float | u2, | ||
float | v2, | ||
float | up2, | ||
float | vp2, | ||
float | u3, | ||
float | v3, | ||
float | up3, | ||
float | vp3, | ||
float | u4, | ||
float | v4, | ||
float | up4, | ||
float | vp4 | ||
) |
Definition at line 38 of file homography.cpp.
homography::~homography | ( | ) |
Definition at line 51 of file homography.cpp.
void homography::add_match | ( | float | u, |
float | v, | ||
float | up, | ||
float | vp | ||
) |
Definition at line 197 of file homography.cpp.
|
inline |
Definition at line 108 of file homography.h.
Referenced by CamCalibration::StoreHomographiesToFile().
|
inline |
Definition at line 113 of file homography.h.
Referenced by CamCalibration::LoadHomographiesFromFile().
|
inline |
Definition at line 118 of file homography.h.
bool homography::estimate | ( | float | u1, |
float | v1, | ||
float | up1, | ||
float | vp1, | ||
float | u2, | ||
float | v2, | ||
float | up2, | ||
float | vp2, | ||
float | u3, | ||
float | v3, | ||
float | up3, | ||
float | vp3, | ||
float | u4, | ||
float | v4, | ||
float | up4, | ||
float | vp4 | ||
) |
Estimates H from 4 point correspondences.
Definition at line 124 of file homography.cpp.
References cvmGet(), and cvmSet().
Referenced by LightCollector::genGrid().
void homography::estimate | ( | void | ) |
Definition at line 203 of file homography.cpp.
void homography::release_matches | ( | void | ) |
Definition at line 190 of file homography.cpp.
void homography::set_match_number | ( | int | n | ) |
Estimation from n correspondences. See homography description.
Definition at line 174 of file homography.cpp.
void homography::transform_point | ( | float | u, |
float | v, | ||
float * | up, | ||
float * | vp | ||
) |
void homography::transform_point | ( | double | u, |
double | v, | ||
double * | up, | ||
double * | vp | ||
) |
Definition at line 165 of file homography.cpp.
References cvmGet().
|
friend |
Definition at line 123 of file homography.h.
|
friend |
Definition at line 130 of file homography.h.
|
friend |
Definition at line 137 of file homography.h.
|
friend |
Definition at line 85 of file homography.cpp.