Go to the documentation of this file.
67 static auto fromAbAndPsi(Eigen::Matrix<TT, 3, 1>
const& ab_and_psi)
70 p.ab_and_psi_ = ab_and_psi;
75 Eigen::Matrix<TT, 2, 1>
const& proj_in_z1_plane, TT
const& one_by_z)
76 : ab_and_psi_(proj_in_z1_plane[0], proj_in_z1_plane[1], one_by_z) {
81 : ab_and_psi_(x_by_z, y_by_z, one_by_z) {}
86 return ab_and_psi_.template head<2>();
90 [[nodiscard]]
auto psi() const -> TT const& {
return ab_and_psi_[2]; }
91 auto psi() -> TT& {
return ab_and_psi_[2]; }
93 [[nodiscard]]
auto data() const -> TT const* {
return ab_and_psi_.data(); }
95 auto data() -> TT* {
return ab_and_psi_.data(); }
97 [[nodiscard]]
auto params() const ->
Eigen::Matrix<TT, 3, 1> const& {
107 return Eigen::Matrix<TT, 3, 1>(
108 ab_and_psi_.x() /
psi(), ab_and_psi_.y() /
psi(), TT(1) /
psi());
112 Eigen::Matrix<TT, 3, 1> ab_and_psi_;
#define SOPHUS_ASSERT_GE(...)
Definition: common.h:42
InverseDepthPoint3()
Definition: inverse_depth.h:58
Image MutImage, owning images types.
Definition: num_diff.h:20
auto toEuclideanPoint3() const -> Eigen::Matrix< TT, 3, 1 >
Precondition: psi must not be close to 0, hence z must not be near infinity.
Definition: inverse_depth.h:103
Inverse depth point representation.
Definition: inverse_depth.h:56
auto psi() -> TT &
Definition: inverse_depth.h:91
InverseDepthPoint3(TT const &x_by_z, TT const &y_by_z, TT const &one_by_z)
Definition: inverse_depth.h:80
static auto fromAbAndPsi(Eigen::Matrix< TT, 3, 1 > const &ab_and_psi) -> InverseDepthPoint3
Definition: inverse_depth.h:67
auto data() const -> TT const *
Definition: inverse_depth.h:93
static auto fromEuclideanPoint3(Eigen::Matrix< TT, 3, 1 > const &p) -> InverseDepthPoint3
Definition: inverse_depth.h:60
auto projInZ1Plane() const -> Eigen::Matrix< TT, 2, 1 >
Definition: inverse_depth.h:85
auto data() -> TT *
Definition: inverse_depth.h:95
InverseDepthPoint3(Eigen::Matrix< TT, 2, 1 > const &proj_in_z1_plane, TT const &one_by_z)
Definition: inverse_depth.h:74
auto params() const -> Eigen::Matrix< TT, 3, 1 > const &
Definition: inverse_depth.h:97
auto psi() const -> TT const &
Returns inverse depth psi, hence "1 / z".
Definition: inverse_depth.h:90