Loading...
Searching...
No Matches
ArraySamplers.hpp
Go to the documentation of this file.
CubicArraySampler & operator=(const CubicArraySampler &other)
Copy assignment operator.
typename GetScalarType< T >::value ScalarType
Definition ArraySamplers.hpp:200
T operator()(const VectorType &pt) const
Returns sampled value at point pt.
Definition ArraySamplers-Impl.hpp:428
std::function< T(const VectorType &)> Functor() const
Returns a std::function object that wraps this instance.
Definition ArraySamplers-Impl.hpp:445
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:307
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:323
void GetCoordinatesAndGradientWeights(const VectorType &pt, std::array< CoordIndexType, FLAT_KERNEL_SIZE > &indices, std::array< VectorType, FLAT_KERNEL_SIZE > &weights) const
Definition ArraySamplers-Impl.hpp:346
std::function< T(const VectorType &)> Functor() const
Returns a std::function instance that wraps this instance.
Definition ArraySamplers-Impl.hpp:371
Definition Matrix.hpp:30
NearestArraySampler & operator=(const NearestArraySampler &other)
Copy assignment operator.
CoordIndexType GetCoordinate(const VectorType &pt) const
Returns the nearest array index for point pt.
Definition ArraySamplers-Impl.hpp:231
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:224
NearestArraySampler()=default
Default constructor.
std::function< T(const VectorType &)> Functor() const
Returns a std::function object that wraps this instance.
Definition ArraySamplers-Impl.hpp:250
~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