Loading...
Searching...
No Matches
ArraySamplers.hpp
Go to the documentation of this file.
CubicArraySampler & operator=(const CubicArraySampler &other)
Copy assignment operator.
Definition ArraySamplers-Impl.hpp:425
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:449
std::function< T(const VectorType &)> Functor() const
Returns a std::function object that wraps this instance.
Definition ArraySamplers-Impl.hpp:466
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:321
LinearArraySampler & operator=(const LinearArraySampler &other)
Copy assignment operator.
Definition ArraySamplers-Impl.hpp:297
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:337
void GetCoordinatesAndGradientWeights(const VectorType &pt, std::array< CoordIndexType, FLAT_KERNEL_SIZE > &indices, std::array< VectorType, FLAT_KERNEL_SIZE > &weights) const
Definition ArraySamplers-Impl.hpp:360
std::function< T(const VectorType &)> Functor() const
Returns a std::function instance that wraps this instance.
Definition ArraySamplers-Impl.hpp:385
Definition Matrix.hpp:30
NearestArraySampler & operator=(const NearestArraySampler &other)
Copy assignment operator.
Definition ArraySamplers-Impl.hpp:207
CoordIndexType GetCoordinate(const VectorType &pt) const
Returns the nearest array index for point pt.
Definition ArraySamplers-Impl.hpp:238
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:231
NearestArraySampler()=default
Default constructor.
std::function< T(const VectorType &)> Functor() const
Returns a std::function object that wraps this instance.
Definition ArraySamplers-Impl.hpp:257
~NearestArraySampler()=default
Default destructor.
Definition pybind11Utils.hpp:21
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