libpointmatcher  1.3.1
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
PointMatcher< T >::Matches Struct Reference

Result of the data-association step (Matcher::findClosests), before outlier rejection. More...

#include <PointMatcher.h>

Public Types

typedef Matrix Dists
 Squared distances to closest points, dense matrix of ScalarType.
 
typedef IntMatrix Ids
 Identifiers of closest points, dense matrix of integers.
 

Public Member Functions

 Matches ()
 In case of too few matches the dists are filled with InvalidDist. More...
 
 Matches (const Dists &dists, const Ids ids)
 Construct matches from distances to and identifiers of closest points.
 
 Matches (const int knn, const int pointsCount)
 Construct uninitialized matches from number of closest points (knn) and number of points (pointsCount)
 
getDistsQuantile (const T quantile) const
 Get the distance at the T-ratio closest point.
 
getMedianAbsDeviation () const
 Calculate the Median of Absolute Deviation(MAD), which is median(|x-median(x)|), a kind of robust standard deviation.
 
getStandardDeviation () const
 

Public Attributes

Dists dists
 squared distances to closest points
 
Ids ids
 identifiers of closest points
 

Static Public Attributes

static constexpr int InvalidId = -1
 
static constexpr T InvalidDist = std::numeric_limits<T>::infinity()
 In case of too few matches the ids are filled with InvalidId.
 

Detailed Description

template<typename T>
struct PointMatcher< T >::Matches

Result of the data-association step (Matcher::findClosests), before outlier rejection.

This class holds a list of associated reference identifiers, along with the corresponding squared distance, for all points in the reading. A single point in the reading can have one or multiple matches.

Constructor & Destructor Documentation

◆ Matches()

template<typename T >
PointMatcher< T >::Matches::Matches ( )

In case of too few matches the dists are filled with InvalidDist.

Construct empty matches.


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