v2.0.0
Loading...
Searching...
No Matches
DISP3DRHILIB::Interpolation Class Reference

This class holds methods for creating distance-based weight matrices and for interpolating signals. More...

#include <interpolation.h>

Public Types

typedef QSharedPointer< InterpolationSPtr
typedef QSharedPointer< const InterpolationConstSPtr

Public Member Functions

 Interpolation ()=delete

Static Public Member Functions

static QSharedPointer< Eigen::SparseMatrix< float > > createInterpolationMat (const QVector< int > &vecProjectedSensors, const QSharedPointer< Eigen::MatrixXd > matDistanceTable, double(*interpolationFunction)(double), const double dCancelDist=FLOAT_INFINITY, const QVector< int > &vecExcludeIndex=QVector< int >())
 createInterpolationMat Calculates the weight matrix for interpolation.
static Eigen::VectorXf interpolateSignal (const QSharedPointer< Eigen::SparseMatrix< float > > matInterpolationMatrix, const QSharedPointer< Eigen::VectorXf > &vecMeasurementData)
 interpolateSignal Interpolates sensor data using the weight matrix (shared pointer version).
static Eigen::VectorXf interpolateSignal (const Eigen::SparseMatrix< float > &matInterpolationMatrix, const Eigen::VectorXf &vecMeasurementData)
 interpolateSignal Interpolates sensor data using the weight matrix (reference version).
static double linear (const double dIn)
 linear Identity interpolation function.
static double gaussian (const double dIn)
 gaussian Gaussian interpolation function (sigma=1).
static double square (const double dIn)
 square Negative parabola interpolation function with y-offset of 1.
static double cubic (const double dIn)
 cubic Cubic hyperbola interpolation function.

Detailed Description

This class holds methods for creating distance-based weight matrices and for interpolating signals.

This class holds methods for creating distance-based weight matrices and for interpolating signals.

Definition at line 77 of file interpolation.h.

Member Typedef Documentation

◆ ConstSPtr

Definition at line 82 of file interpolation.h.

◆ SPtr

Definition at line 81 of file interpolation.h.

Constructor & Destructor Documentation

◆ Interpolation()

DISP3DRHILIB::Interpolation::Interpolation ( )
delete

Member Function Documentation

◆ createInterpolationMat()

QSharedPointer< SparseMatrix< float > > Interpolation::createInterpolationMat ( const QVector< int > & vecProjectedSensors,
const QSharedPointer< Eigen::MatrixXd > matDistanceTable,
double(* interpolationFunction )(double),
const double dCancelDist = FLOAT_INFINITY,
const QVector< int > & vecExcludeIndex = QVector<int>() )
static

createInterpolationMat Calculates the weight matrix for interpolation.

Definition at line 59 of file interpolation.cpp.

◆ cubic()

double Interpolation::cubic ( const double dIn)
static

cubic Cubic hyperbola interpolation function.

Definition at line 167 of file interpolation.cpp.

◆ gaussian()

double Interpolation::gaussian ( const double dIn)
static

gaussian Gaussian interpolation function (sigma=1).

Definition at line 153 of file interpolation.cpp.

◆ interpolateSignal() [1/2]

Eigen::VectorXf DISP3DRHILIB::Interpolation::interpolateSignal ( const Eigen::SparseMatrix< float > & matInterpolationMatrix,
const Eigen::VectorXf & vecMeasurementData )
static

interpolateSignal Interpolates sensor data using the weight matrix (reference version).

◆ interpolateSignal() [2/2]

Eigen::VectorXf DISP3DRHILIB::Interpolation::interpolateSignal ( const QSharedPointer< Eigen::SparseMatrix< float > > matInterpolationMatrix,
const QSharedPointer< Eigen::VectorXf > & vecMeasurementData )
static

interpolateSignal Interpolates sensor data using the weight matrix (shared pointer version).

◆ linear()

double Interpolation::linear ( const double dIn)
static

linear Identity interpolation function.

Definition at line 146 of file interpolation.cpp.

◆ square()

double Interpolation::square ( const double dIn)
static

square Negative parabola interpolation function with y-offset of 1.

Definition at line 160 of file interpolation.cpp.


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