Fix essential matrix factor
parent
2d0672059c
commit
a1ba3d77c8
|
@ -71,7 +71,7 @@ class EssentialMatrixFactor : public NoiseModelFactorN<EssentialMatrix> {
|
||||||
std::shared_ptr<CALIBRATION> K)
|
std::shared_ptr<CALIBRATION> K)
|
||||||
: Base(model, key) {
|
: Base(model, key) {
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
if (K->empty()) throw;
|
if (!K) throw;
|
||||||
#endif
|
#endif
|
||||||
vA_ = EssentialMatrix::Homogeneous(K->calibrate(pA));
|
vA_ = EssentialMatrix::Homogeneous(K->calibrate(pA));
|
||||||
vB_ = EssentialMatrix::Homogeneous(K->calibrate(pB));
|
vB_ = EssentialMatrix::Homogeneous(K->calibrate(pB));
|
||||||
|
|
Loading…
Reference in New Issue