Loading...
Searching...
No Matches
ArraySamplers.hpp
Go to the documentation of this file.
CubicArraySampler(CubicArraySampler &&other) noexcept
Move constructor.
CubicArraySampler & operator=(const CubicArraySampler &other)
Copy assignment operator.
typename GetScalarType< T >::value ScalarType
Definition ArraySamplers.hpp:200
CubicArraySampler & operator=(CubicArraySampler &&other) noexcept
Move assignment operator.
T operator()(const VectorType &pt) const
Returns sampled value at point pt.
Definition ArraySamplers-Impl.hpp:365
CubicArraySampler(const CubicArraySampler &other)
Copy constructor.
std::function< T(const VectorType &)> Functor() const
Returns a std::function object that wraps this instance.
Definition ArraySamplers-Impl.hpp:382
N-D array sampler using linear interpolation.
Definition ArraySamplers.hpp:107
static constexpr size_t FLAT_KERNEL_SIZE
Definition ArraySamplers.hpp:120
T operator()(const VectorType &pt) const
Returns sampled value at point pt.
Definition ArraySamplers-Impl.hpp:265
LinearArraySampler & operator=(LinearArraySampler &&other) noexcept
Move assignment operator.
LinearArraySampler & operator=(const LinearArraySampler &other)
Copy assignment operator.
typename GetScalarType< T >::value ScalarType
Definition ArraySamplers.hpp:111
void GetCoordinatesAndWeights(const VectorType &pt, std::array< CoordIndexType, FLAT_KERNEL_SIZE > &indices, std::array< ScalarType, FLAT_KERNEL_SIZE > &weights) const
Returns the indices of points and their sampling weight for given point.
Definition ArraySamplers-Impl.hpp:281
void GetCoordinatesAndGradientWeights(const VectorType &pt, std::array< CoordIndexType, FLAT_KERNEL_SIZE > &indices, std::array< VectorType, FLAT_KERNEL_SIZE > &weights) const
Definition ArraySamplers-Impl.hpp:304
LinearArraySampler(LinearArraySampler &&other) noexcept
Move constructor.
LinearArraySampler(const LinearArraySampler &other)
Copy constructor.
std::function< T(const VectorType &)> Functor() const
Returns a std::function instance that wraps this instance.
Definition ArraySamplers-Impl.hpp:329
Definition Matrix.hpp:30
NearestArraySampler & operator=(const NearestArraySampler &other)
Copy assignment operator.
NearestArraySampler & operator=(NearestArraySampler &&other) noexcept
Move assignment operator.
CoordIndexType GetCoordinate(const VectorType &pt) const
Returns the nearest array index for point pt.
Definition ArraySamplers-Impl.hpp:210
typename GetScalarType< T >::value ScalarType
Definition ArraySamplers.hpp:34
T operator()(const VectorType &pt) const
Returns sampled value at point pt.
Definition ArraySamplers-Impl.hpp:203
NearestArraySampler()=default
Default constructor.
NearestArraySampler(const NearestArraySampler &other)
Copy constructor.
std::function< T(const VectorType &)> Functor() const
Returns a std::function object that wraps this instance.
Definition ArraySamplers-Impl.hpp:229
NearestArraySampler(NearestArraySampler &&other) noexcept
Move constructor.
~NearestArraySampler()=default
Default destructor.
Definition pybind11Utils.hpp:22
std::enable_if_t< std::is_arithmetic< T >::value, S > CatmullRom(const S &f0, const S &f1, const S &f2, const S &f3, T t)
Computes Catmull-Rom interpolation.
Definition MathUtils-Impl.hpp:318
std::enable_if_t< std::is_arithmetic< T >::value, T > MonotonicCatmullRom(const T &f0, const T &f1, const T &f2, const T &f3, T t)
Computes monotonic Catmull-Rom interpolation.
Definition MathUtils-Impl.hpp:336
Definition ArraySamplers.hpp:253
T operator()(const T &f0, const T &f1, const T &f2, const T &f3, ScalarType t) const
Definition ArraySamplers.hpp:256
typename GetScalarType< T >::value ScalarType
Definition ArraySamplers.hpp:254
Definition ArraySamplers.hpp:265
T operator()(const T &f0, const T &f1, const T &f2, const T &f3, ScalarType t) const
Definition ArraySamplers.hpp:268
typename GetScalarType< T >::value ScalarType
Definition ArraySamplers.hpp:266
1.9.8