PCL
pcl::NearestNeighborInterpolation< T > Class Template Reference

Two-dimensional nearest neighbor interpolation algorithm. More...

#include <NearestNeighborInterpolation.h>

+ Inheritance diagram for pcl::NearestNeighborInterpolation< T >:

Public Member Functions

 NearestNeighborInterpolation ()=default
 
 NearestNeighborInterpolation (const NearestNeighborInterpolation &)=default
 
double operator() (double x, double y) const override
 
- Public Member Functions inherited from pcl::BidimensionalInterpolation< T >
 BidimensionalInterpolation ()=default
 
 BidimensionalInterpolation (const BidimensionalInterpolation &)=default
 
virtual ~BidimensionalInterpolation ()
 
const T * BeingInterpolated () const
 
double BorderFillValue () const
 
virtual void Clear ()
 
void DisableBorderFilling (bool disable=true)
 
void EnableBorderFilling (bool enable=true)
 
int Height () const
 
virtual void Initialize (const T *data, int width, int height)
 
bool IsBorderFillingEnabled () const
 
void SetBorderFillValue (double v)
 
int Width () const
 

Detailed Description

template<typename T>
class pcl::NearestNeighborInterpolation< T >

Nearest neighbor interpolation selects the value of the nearest data point from the source 2-D matrix. This interpolation always returns existing data values in the source matrix, since it doesn't consider the values of other neighboring points.

See also
BidimensionalInterpolation, BilinearInterpolation, BicubicSplineInterpolation, BicubicBSplineInterpolation, BicubicFilterInterpolation,

Definition at line 88 of file NearestNeighborInterpolation.h.

Constructor & Destructor Documentation

◆ NearestNeighborInterpolation() [1/2]

template<typename T >
pcl::NearestNeighborInterpolation< T >::NearestNeighborInterpolation ( )
default

Constructs a NearestNeighborInterpolation instance.

◆ NearestNeighborInterpolation() [2/2]

Copy constructor.

Member Function Documentation

◆ operator()()

template<typename T >
double pcl::NearestNeighborInterpolation< T >::operator() ( double  x,
double  y 
) const
inlineoverridevirtual

Returns an interpolated value at {x,y} location.

Parameters
x,yCoordinates of the interpolation point (horizontal,vertical).

Implements pcl::BidimensionalInterpolation< T >.

Definition at line 107 of file NearestNeighborInterpolation.h.


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