#include <cost_functors.h>
Definition at line 71 of file cost_functors.h.
| bsfm::GeometricError::GeometricError |
( |
const Feature & |
x, |
|
|
const Point3D & |
X |
|
) |
| |
|
inline |
| static ceres::CostFunction* bsfm::GeometricError::Create |
( |
const Feature & |
x, |
|
|
const Point3D & |
X |
|
) |
| |
|
inlinestatic |
Definition at line 96 of file cost_functors.h.
97 static const int kNumResiduals = 2;
98 static const int kNumCameraParameters = 12;
GeometricError(const Feature &x, const Point3D &X)
template<typename T >
| bool bsfm::GeometricError::operator() |
( |
const T *const |
P, |
|
|
T * |
geometric_error |
|
) |
| const |
|
inline |
Definition at line 82 of file cost_functors.h.
86 T scale = P[2] *
X_.
X() + P[5] *
X_.
Y() + P[8] *
X_.
Z() + P[11];
88 x_.
u_ - (P[0] *
X_.
X() + P[3] *
X_.
Y() + P[6] *
X_.
Z() + P[9]) / scale;
90 x_.
v_ - (P[1] *
X_.
X() + P[4] *
X_.
Y() + P[7] *
X_.
Z() + P[10]) / scale;
The documentation for this struct was generated from the following file: