iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nrt::Correspondence Struct Reference

#include <nrt/PointCloud2/Common/Correspondence.H>

A struct for representing correspondence between two points.

Definition at line 52 of file Correspondence.H.

Public Member Functions

 Correspondence ()
 Default initialization.
 Correspondence (int sourceIdx, int targetIdx, float score_)
 Initialize with a correspondence.
bool operator== (Correspondence const &other) const
 Equality operator. More...
bool operator< (Correspondence const &other) const
 Comparison operator. More...

Public Attributes

int sourceIndex
 Index of a point in the source cloud.
int targetIndex
 Index of a point in the target cloud.
float score
 Some scoring metric such as distance or weight between the matches.

Related Functions

(Note that these are not member functions.)

typedef DynamicArray
< Correspondence
 Convenience typedef for a group of correspondences.
Indices getSourceIndices (Correspondences const correspondences)
 Gets the set of indices corresponding to the source cloud.
Indices getTargetIndices (Correspondences const correspondences)
 Gets the set of indices corresponding to the target cloud.

Member Function Documentation

bool nrt::Correspondence::operator== ( Correspondence const &  other) const

Equality operator.

Equal if source and target indices are the same

bool nrt::Correspondence::operator< ( Correspondence const &  other) const

Comparison operator.

First compares on source then on target if sources are equal

The documentation for this struct was generated from the following file: