template struct mrpt::tfest::TMatchingPairTemplΒΆ

A structure for holding correspondences between two sets of points or points-like entities in 2D or 3D.

Templatized version for double or float.

#include <mrpt/tfest/TMatchingPair.h>

template <typename T>
struct TMatchingPairTempl
{
    //
fields

    uint32_t this_idx {0};
    uint32_t other_idx {0};
    T this_x {0};
    T this_y {0};
    T this_z {0};
    T other_x {0};
    T other_y {0};
    T other_z {0};
    T errorSquareAfterTransformation {0};

    // construction

    TMatchingPairTempl();

    TMatchingPairTempl(
        uint32_t _this_idx,
        uint32_t _other_idx,
        T _this_x,
        T _this_y,
        T _this_z,
        T _other_x,
        T _other_y,
        T _other_z
        );

    //
methods

    void print(std::ostream& o) const;
};