52 #ifndef __PCL_NearestNeighborInterpolation_h
53 #define __PCL_NearestNeighborInterpolation_h
58 #include <pcl/Diagnostics.h>
68 #define m_width this->m_width
69 #define m_height this->m_height
70 #define m_data this->m_data
109 PCL_PRECONDITION( m_data !=
nullptr )
110 PCL_PRECONDITION( m_width > 0 && m_height > 0 )
A generic interface to two-dimensional interpolation algorithms.
Two-dimensional nearest neighbor interpolation algorithm.
NearestNeighborInterpolation()=default
double operator()(double x, double y) const override
NearestNeighborInterpolation(const NearestNeighborInterpolation &)=default
int RoundIntArithmetic(T x) noexcept
constexpr const T & Range(const T &x, const T &a, const T &b) noexcept