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.

Before MRPT 2.4.0, “local” and “global” points were named “other”, and “this”, respectively, and were not packed into a TPoint structure.

#include <mrpt/tfest/TMatchingPair.h>

template <typename T>
struct TMatchingPairTempl
{
    //
fields

    uint32_t globalIdx {0};
    uint32_t localIdx {0};
    mrpt::math::TPoint3D_<T> global {0, 0, 0};
    mrpt::math::TPoint3D_<T> local {0, 0, 0};
    T errorSquareAfterTransformation {0};

    // construction

    TMatchingPairTempl();

    TMatchingPairTempl(
        uint32_t _globalIdx,
        uint32_t _localIdx,
        T _global_x,
        T _global_y,
        T _global_z,
        T _local_x,
        T _local_y,
        T _local_z
        );

    TMatchingPairTempl(
        uint32_t _globalIdx,
        uint32_t _localIdx,
        const mrpt::math::TPoint3D_<T>& _global,
        const mrpt::math::TPoint3D_<T>& _local
        );

    //
methods

    void print(std::ostream& o) const;
    static constexpr auto getClassName();
};

Methods

void print(std::ostream& o) const

Print contents with format: `[globalIdx -> localIdx] (global.

{x,y,z}) -> (local.{x,y,z})`