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. More...
 
typedef IntMatrix Ids
 Identifiers of closest points, dense matrix of integers. More...
 

Public Member Functions

getDistsQuantile (const T quantile) const
 Get the distance at the T-ratio closest point. More...
 
getMedianAbsDeviation () const
 Calculate the Median of Absolute Deviation(MAD), which is median(|x-median(x)|), a kind of robust standard deviation. More...
 
getStandardDeviation () const
 
 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. More...
 
 Matches (const int knn, const int pointsCount)
 Construct uninitialized matches from number of closest points (knn) and number of points (pointsCount) More...
 

Public Attributes

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

Static Public Attributes

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

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.

Definition at line 371 of file PointMatcher.h.

Member Typedef Documentation

◆ Dists

template<typename T >
typedef Matrix PointMatcher< T >::Matches::Dists

Squared distances to closest points, dense matrix of ScalarType.

Definition at line 373 of file PointMatcher.h.

◆ Ids

template<typename T >
typedef IntMatrix PointMatcher< T >::Matches::Ids

Identifiers of closest points, dense matrix of integers.

Definition at line 374 of file PointMatcher.h.

Constructor & Destructor Documentation

◆ Matches() [1/3]

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

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

Construct empty matches.

Definition at line 43 of file Matches.cpp.

◆ Matches() [2/3]

template<typename T >
PointMatcher< T >::Matches::Matches ( const Dists dists,
const Ids  ids 
)

Construct matches from distances to and identifiers of closest points.

Definition at line 47 of file Matches.cpp.

◆ Matches() [3/3]

template<typename T >
PointMatcher< T >::Matches::Matches ( const int  knn,
const int  pointsCount 
)

Construct uninitialized matches from number of closest points (knn) and number of points (pointsCount)

Definition at line 54 of file Matches.cpp.

Member Function Documentation

◆ getDistsQuantile()

template<typename T >
T PointMatcher< T >::Matches::getDistsQuantile ( const T  quantile) const

Get the distance at the T-ratio closest point.

Definition at line 61 of file Matches.cpp.

◆ getMedianAbsDeviation()

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

Calculate the Median of Absolute Deviation(MAD), which is median(|x-median(x)|), a kind of robust standard deviation.

Definition at line 91 of file Matches.cpp.

◆ getStandardDeviation()

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

Definition at line 125 of file Matches.cpp.

Member Data Documentation

◆ dists

template<typename T >
Dists PointMatcher< T >::Matches::dists

squared distances to closest points

Definition at line 384 of file PointMatcher.h.

◆ ids

template<typename T >
Ids PointMatcher< T >::Matches::ids

identifiers of closest points

Definition at line 385 of file PointMatcher.h.

◆ InvalidDist

template<typename T >
constexpr T PointMatcher< T >::Matches::InvalidDist = std::numeric_limits<T>::infinity()
staticconstexpr

In case of too few matches the ids are filled with InvalidId.

Definition at line 378 of file PointMatcher.h.

◆ InvalidId

template<typename T >
constexpr int PointMatcher< T >::Matches::InvalidId = -1
staticconstexpr

Definition at line 377 of file PointMatcher.h.


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


mp2p_icp
Author(s):
autogenerated on Fri Dec 20 2024 03:46:00