OpenVDB 11.0.0
|
Tri-linear sampler, i.e. first order, interpolator. More...
#include <nanovdb/util/SampleFromVoxels.h>
Public Types | |
using | ValueT = typename TreeOrAccT::ValueType |
using | CoordT = typename TreeOrAccT::CoordType |
Public Member Functions | |
TrilinearSampler (const TreeOrAccT &acc) | |
Protected constructor from a Tree or ReadAccessor. | |
const TreeOrAccT & | accessor () const |
void | stencil (CoordT &ijk, ValueT(&v)[2][2][2]) const |
Extract the stencil of 8 values. | |
template<typename RealT , template< typename... > class Vec3T> | |
TreeOrAccT::ValueType | sample (const Vec3T< RealT > &uvw, const ValueT(&v)[2][2][2]) |
template<typename RealT , template< typename... > class Vec3T> | |
Vec3T< typename TreeOrAccT::ValueType > | gradient (const Vec3T< RealT > &uvw, const ValueT(&v)[2][2][2]) |
Static Public Member Functions | |
template<typename RealT , template< typename... > class Vec3T> | |
static ValueT | sample (const Vec3T< RealT > &uvw, const ValueT(&v)[2][2][2]) |
template<typename RealT , template< typename... > class Vec3T> | |
static Vec3T< ValueT > | gradient (const Vec3T< RealT > &uvw, const ValueT(&v)[2][2][2]) |
static bool | zeroCrossing (const ValueT(&v)[2][2][2]) |
Static Public Attributes | |
static const int | ORDER = 1 |
Protected Attributes | |
const TreeOrAccT & | mAcc |
Tri-linear sampler, i.e. first order, interpolator.
using CoordT = typename TreeOrAccT::CoordType |
using ValueT = typename TreeOrAccT::ValueType |
|
inline |
Protected constructor from a Tree or ReadAccessor.
|
inline |
|
inlinestatic |
Vec3T< typename TreeOrAccT::ValueType > gradient | ( | const Vec3T< RealT > & | uvw, |
const ValueT(&) | v[2][2][2] ) |
|
inlinestatic |
TreeOrAccT::ValueType sample | ( | const Vec3T< RealT > & | uvw, |
const ValueT(&) | v[2][2][2] ) |
Extract the stencil of 8 values.
|
inlinestatic |
|
protected |
|
static |