14#ifndef OPENVDB_POINTS_STATISTICS_HAS_BEEN_INCLUDED
15#define OPENVDB_POINTS_STATISTICS_HAS_BEEN_INCLUDED
25#include <tbb/parallel_reduce.h>
26#include <tbb/parallel_for.h>
46template <
typename ValueT,
47 typename CodecT = UnknownCodec,
48 typename FilterT = NullFilter,
49 typename PointDataTreeT>
50std::pair<ValueT, ValueT>
52 const std::string& attribute,
71template <
typename ValueT,
74 typename PointDataTreeT>
77 const std::string& attribute,
95template <
typename ValueT,
98 typename PointDataTreeT>
101 const std::string& attribute,
125template <
typename ValueT,
128 typename PointDataTreeT>
130 const std::string& attribute,
134 typename PointDataTreeT::template ValueConverter<ValueT>::Type* minTree =
nullptr,
135 typename PointDataTreeT::template ValueConverter<ValueT>::Type* maxTree =
nullptr);
167template <
typename ValueT,
170 typename PointDataTreeT,
173 const std::string& attribute,
176 typename PointDataTreeT::template ValueConverter<ResultTreeT>::Type* averageTree =
nullptr);
207template <
typename ValueT,
210 typename PointDataTreeT,
213 const std::string& attribute,
216 typename PointDataTreeT::template ValueConverter<ResultTreeT>::Type* totalTree =
nullptr);
222#include "impl/PointStatisticsImpl.h"
A LeafManager manages a linear array of pointers to a given tree's leaf nodes, as well as optional au...
General-purpose arithmetic and comparison routines, most of which accept arbitrary value types (or at...
Attribute-owned data structure for points. Point attributes are stored in leaf nodes and ordered by v...
A no-op filter that can be used when iterating over all indices.
Definition IndexIterator.h:52
Definition AttributeArray.h:42
PromoteType< ValueT >::Highest accumulate(const PointDataTreeT &points, const std::string &attribute, const FilterT &filter=NullFilter())
Evaluates the total value of a point attribute.
std::pair< ValueT, ValueT > evalMinMax(const PointDataTreeT &points, const std::string &attribute, const FilterT &filter=NullFilter())
Evaluates the minimum and maximum values of a point attribute.
ConvertElementType< ValueT, double >::Type evalAverage(const PointDataTreeT &points, const std::string &attribute, const FilterT &filter=NullFilter())
Evaluates the average value of a point attribute.
Definition Exceptions.h:13
SubT Type
Definition Types.h:372
Definition AttributeArray.h:433
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition version.h.in:121
#define OPENVDB_USE_VERSION_NAMESPACE
Definition version.h.in:218