9 #ifndef TMatchingPair_H 10 #define TMatchingPair_H 23 #if defined(MRPT_IS_X86_AMD64) 47 unsigned int _this_idx,
unsigned int _other_idx,
float _this_x,
48 float _this_y,
float _this_z,
float _other_x,
float _other_y,
83 #if defined(MRPT_IS_X86_AMD64) 84 #pragma pack(pop) // End of pack = 1 122 std::vector<float>& ys)
const;
144 std::vector<float>& xs, std::vector<float>& ys)
const;
155 const size_t num_elements_this_map,
float overallSquareError(const mrpt::poses::CPose2D &q) const
Computes the overall square error between the 2D points in the list of correspondences, given the 2D transformation "q" Where are the elements of the square error vector as computed by computeSquareErrorVector.
float overallSquareErrorAndPoints(const mrpt::poses::CPose2D &q, std::vector< float > &xs, std::vector< float > &ys) const
Computes the overall square error between the 2D points in the list of correspondences, given the 2D transformation "q", and return the transformed points as well.
GLdouble GLdouble GLdouble GLdouble q
bool contains(const TMatchingPair &p) const
Test whether the given pair "p" is within the pairings.
bool operator==(const mrpt::utils::TCamera &a, const mrpt::utils::TCamera &b)
friend std::ostream & operator<<(std::ostream &o, const mrpt::utils::TMatchingPair &pair)
void dumpToFile(const std::string &fileName) const
Saves the correspondences to a text file.
void saveAsMATLABScript(const std::string &filName) const
Saves the correspondences as a MATLAB script which draws them.
GLsizei const GLchar ** string
TMatchingPair const * TMatchingPairConstPtr
void squareErrorVector(const mrpt::poses::CPose2D &q, std::vector< float > &out_sqErrs) const
Returns a vector with the square error between each pair of correspondences in the list...
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
void filterUniqueRobustPairs(const size_t num_elements_this_map, TMatchingPairList &out_filtered_list) const
Creates a filtered list of pairings with those ones which have a single correspondence which coincide...
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)
bool operator<(const TMatchingPair &a, const TMatchingPair &b)
A comparison operator, for sorting lists of TMatchingPair's, first order by this_idx, if equals, by other_idx.
GLubyte GLubyte GLubyte a
bool indexOtherMapHasCorrespondence(size_t idx) const
Checks if the given index from the "other" map appears in the list.
float errorSquareAfterTransformation
A structure for holding correspondences between two sets of points or points-like entities in 2D or 3...