9 #ifndef TMatchingPair_H 10 #define TMatchingPair_H 24 #if defined(MRPT_IS_X86_AMD64) 34 this_idx(0), other_idx(0),
35 this_x(0),this_y(0),this_z(0),
36 other_x(0),other_y(0),other_z(0),
37 errorSquareAfterTransformation(0)
41 TMatchingPair(
unsigned int _this_idx,
unsigned int _other_idx,
float _this_x,
float _this_y,
float _this_z,
float _other_x,
float _other_y,
float _other_z ) :
42 this_idx(_this_idx), other_idx(_other_idx),
43 this_x(_this_x),this_y(_this_y),this_z(_this_z),
44 other_x(_other_x),other_y(_other_y),other_z(_other_z),
45 errorSquareAfterTransformation(0)
67 #if defined(MRPT_IS_X86_AMD64) 68 #pragma pack(pop) // End of pack = 1 82 bool indexOtherMapHasCorrespondence(
size_t idx)
const;
86 void saveAsMATLABScript(
const std::string &filName )
const;
100 float overallSquareErrorAndPoints(
102 std::vector<float> &xs,
103 std::vector<float> &ys )
const;
118 void squareErrorVector(
120 std::vector<float> &out_sqErrs,
121 std::vector<float> &xs,
122 std::vector<float> &ys )
const;
130 void filterUniqueRobustPairs(
const size_t num_elements_this_map,
TMatchingPairList &out_filtered_list)
const;
GLdouble GLdouble GLdouble GLdouble q
friend std::ostream & operator<<(std::ostream &o, const mrpt::utils::TMatchingPair &pair)
bool operator<(const CArray< T, N > &x, const CArray< T, N > &y)
GLsizei const GLchar ** string
TMatchingPair const * TMatchingPairConstPtr
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A class used to store a 2D pose, including the 2D coordinate point and a heading (phi) angle...
TMatchingPair * TMatchingPairPtr
bool operator==(const CArray< T, N > &x, const CArray< T, N > &y)
TMatchingPair(unsigned int _this_idx, unsigned int _other_idx, float _this_x, float _this_y, float _this_z, float _other_x, float _other_y, float _other_z)
GLubyte GLubyte GLubyte a
float errorSquareAfterTransformation
A structure for holding correspondences between two sets of points or points-like entities in 2D or 3...