Main MRPT website > C++ reference
MRPT logo
Public Member Functions

mrpt::utils::TMatchingPairList Class Reference


Detailed Description

A list of TMatchingPair.

Definition at line 71 of file TMatchingPair.h.

#include <mrpt/utils/TMatchingPair.h>

Inheritance diagram for mrpt::utils::TMatchingPairList:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool indexOtherMapHasCorrespondence (unsigned int idx)
 Checks if the given index from the "other" map appears in the list.
void dumpToFile (const std::string &fileName)
 Saves the correspondences to a text file.
void saveAsMATLABScript (const std::string &filName)
 Saves the correspondences as a MATLAB script which draws them.
float overallSquareError (const CPose2D &q) const
 Computes the overall square error between the 2D points in the list of correspondences, given the 2D transformation "q"

\[ \sum\limits_i e_i \]

Where $ e_i $ are the elements of the square error vector as computed by computeSquareErrorVector.

float overallSquareErrorAndPoints (const CPose2D &q, vector_float &xs, 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.
void squareErrorVector (const CPose2D &q, vector_float &out_sqErrs) const
 Returns a vector with the square error between each pair of correspondences in the list, given the 2D transformation "q" Each element $ e_i $ is the square distance between the "this" (global) point and the "other" (local) point transformed through "q":

\[ e_i = | x_{this} - q \oplus x_{other} |^2 \]

.

void squareErrorVector (const CPose2D &q, vector_float &out_sqErrs, vector_float &xs, vector_float &ys) const
 Returns a vector with the square error between each pair of correspondences in the list and the transformed "other" (local) points, given the 2D transformation "q" Each element $ e_i $ is the square distance between the "this" (global) point and the "other" (local) point transformed through "q":

\[ e_i = | x_{this} - q \oplus x_{other} |^2 \]

.

bool contains (const TMatchingPair &p) const
 Test whether the given pair "p" is within the pairings.

Member Function Documentation

bool mrpt::utils::TMatchingPairList::contains ( const TMatchingPair p) const

Test whether the given pair "p" is within the pairings.

void mrpt::utils::TMatchingPairList::dumpToFile ( const std::string &  fileName)

Saves the correspondences to a text file.

bool mrpt::utils::TMatchingPairList::indexOtherMapHasCorrespondence ( unsigned int  idx)

Checks if the given index from the "other" map appears in the list.

float mrpt::utils::TMatchingPairList::overallSquareError ( const CPose2D q) const

Computes the overall square error between the 2D points in the list of correspondences, given the 2D transformation "q"

\[ \sum\limits_i e_i \]

Where $ e_i $ are the elements of the square error vector as computed by computeSquareErrorVector.

See also:
squareErrorVector, overallSquareErrorAndPoints
float mrpt::utils::TMatchingPairList::overallSquareErrorAndPoints ( const CPose2D q,
vector_float xs,
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.

\[ \sum\limits_i e_i \]

Where $ e_i $ are the elements of the square error vector as computed by computeSquareErrorVector

See also:
squareErrorVector
void mrpt::utils::TMatchingPairList::saveAsMATLABScript ( const std::string &  filName)

Saves the correspondences as a MATLAB script which draws them.

void mrpt::utils::TMatchingPairList::squareErrorVector ( const CPose2D q,
vector_float out_sqErrs,
vector_float xs,
vector_float ys 
) const

Returns a vector with the square error between each pair of correspondences in the list and the transformed "other" (local) points, given the 2D transformation "q" Each element $ e_i $ is the square distance between the "this" (global) point and the "other" (local) point transformed through "q":

\[ e_i = | x_{this} - q \oplus x_{other} |^2 \]

.

See also:
overallSquareError
void mrpt::utils::TMatchingPairList::squareErrorVector ( const CPose2D q,
vector_float out_sqErrs 
) const

Returns a vector with the square error between each pair of correspondences in the list, given the 2D transformation "q" Each element $ e_i $ is the square distance between the "this" (global) point and the "other" (local) point transformed through "q":

\[ e_i = | x_{this} - q \oplus x_{other} |^2 \]

.

See also:
overallSquareError



Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN:exported at Tue Jan 25 21:56:31 UTC 2011