MCPcopy Create free account
hub / github.com/ComputationalRobotics/XM-code / fetzer_d

Function fetzer_d

deps/glomap/glomap/estimators/cost_function.h:47–60  ·  view source on GitHub ↗

---------------------------------------- FetzerFocalLengthCost ---------------------------------------- Below are assets for DMAP by Philipp Lindenberger

Source from the content-addressed store, hash-verified

45// ----------------------------------------
46// Below are assets for DMAP by Philipp Lindenberger
47inline Eigen::Vector4d fetzer_d(const Eigen::Vector3d& ai,
48 const Eigen::Vector3d& bi,
49 const Eigen::Vector3d& aj,
50 const Eigen::Vector3d& bj,
51 const int u,
52 const int v) {
53 Eigen::Vector4d d;
54 d.setZero();
55 d(0) = ai(u) * aj(v) - ai(v) * aj(u);
56 d(1) = ai(u) * bj(v) - ai(v) * bj(u);
57 d(2) = bi(u) * aj(v) - bi(v) * aj(u);
58 d(3) = bi(u) * bj(v) - bi(v) * bj(u);
59 return d;
60}
61
62inline std::array<Eigen::Vector4d, 3> fetzer_ds(
63 const Eigen::Matrix3d& i1_G_i0) {

Callers 1

fetzer_dsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected