35 #ifndef IE_CORE_INVERSEDISTANCEWEIGHTEDINTERPOLATION_H
36 #define IE_CORE_INVERSEDISTANCEWEIGHTEDINTERPOLATION_H
40 #include "IECore/KDTree.h"
49 template<
typename Po
intIterator,
typename ValueIterator >
54 typedef typename std::iterator_traits<PointIterator>::value_type Point;
58 typedef std::vector<typename Tree::Neighbour> NeighbourVector;
60 typedef typename std::iterator_traits<ValueIterator>::value_type Value;
72 PointIterator firstPoint,
73 PointIterator lastPoint,
74 ValueIterator firstValue,
75 ValueIterator lastValue,
76 unsigned int numNeighbours,
88 Value
operator()(
const Point &p, NeighbourVector &neighbours )
const;
94 PointIterator m_firstPoint;
95 ValueIterator m_firstValue;
97 unsigned int m_numNeighbours;
113 #include "InverseDistanceWeightedInterpolation.inl"
115 #endif // IE_CORE_INVERSEDISTANCEWEIGHTEDINTERPOLATION_H
Value operator()(const Point &p) const
Evaluate the interpolated value for the specified point.
Definition: VectorTraits.h:48
Definition: InverseDistanceWeightedInterpolation.h:50
InverseDistanceWeightedInterpolation(PointIterator firstPoint, PointIterator lastPoint, ValueIterator firstValue, ValueIterator lastValue, unsigned int numNeighbours, int maxLeafSize=4)
This namespace contains all components of the core library.
Definition: AddSmoothSkinningInfluencesOp.h:43