9 #ifndef TMatchingPair_H
10 #define TMatchingPair_H
23 #if defined(MRPT_IS_X86_AMD64)
33 this_idx(0), other_idx(0),
34 this_x(0),this_y(0),this_z(0),
35 other_x(0),other_y(0),other_z(0),
36 errorSquareAfterTransformation(0)
40 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 ) :
41 this_idx(_this_idx), other_idx(_other_idx),
42 this_x(_this_x),this_y(_this_y),this_z(_this_z),
43 other_x(_other_x),other_y(_other_y),other_z(_other_z),
44 errorSquareAfterTransformation(0)
56 #if defined(MRPT_IS_X86_AMD64)
57 #pragma pack(pop) // End of pack = 1
70 bool indexOtherMapHasCorrespondence(
size_t idx)
const;
72 void dumpToFile(
const std::string &fileName)
const;
74 void saveAsMATLABScript(
const std::string &filName )
const;
88 float overallSquareErrorAndPoints(
90 std::vector<float> &xs,
91 std::vector<float> &ys )
const;
106 void squareErrorVector(
108 std::vector<float> &out_sqErrs,
109 std::vector<float> &xs,
110 std::vector<float> &ys )
const;