Loading...
Searching...
No Matches
Statistics.h File Reference

Functions to efficiently compute histograms, extrema (min/max) and statistics (mean, variance, etc.) of grid values. More...

`#include <openvdb/Types.h>`
`#include <openvdb/Exceptions.h>`
`#include <openvdb/math/Stats.h>`
`#include "ValueTransformer.h"`

Go to the source code of this file.

## Namespaces

namespace | openvdb
namespace | openvdb::v11_0
namespace | openvdb::v11_0::tools

## Functions

template<typename IterT >
math::Histogram | histogram (const IterT &iter, double minVal, double maxVal, size_t numBins=10, bool threaded=true)
| Iterate over a scalar grid and compute a histogram of the values of the voxels that are visited, or iterate over a vector-valued grid and compute a histogram of the magnitudes of the vectors.
template<typename IterT >
math::Extrema | extrema (const IterT &iter, bool threaded=true)
| Iterate over a scalar grid and compute extrema (min/max) of the values of the voxels that are visited, or iterate over a vector-valued grid and compute extrema of the magnitudes of the vectors.
template<typename IterT >
math::Stats | statistics (const IterT &iter, bool threaded=true)
| Iterate over a scalar grid and compute statistics (mean, variance, etc.) of the values of the voxels that are visited, or iterate over a vector-valued grid and compute statistics of the magnitudes of the vectors.
template<typename IterT , typename ValueOp >
math::Extrema | extrema (const IterT &iter, const ValueOp &op, bool threaded)
| Iterate over a grid and compute extrema (min/max) of the values produced by applying the given functor at each voxel that is visited.
template<typename IterT , typename ValueOp >
math::Stats | statistics (const IterT &iter, const ValueOp &op, bool threaded)
| Iterate over a grid and compute statistics (mean, variance, etc.) of the values produced by applying the given functor at each voxel that is visited.
template<typename OperatorT , typename IterT >
math::Stats | opStatistics (const IterT &iter, const OperatorT &op=OperatorT(), bool threaded=true)
| Iterate over a grid and compute statistics (mean, variance, etc.) of the values produced by applying a given operator (see math/Operators.h) at each voxel that is visited.
template<typename OperatorT , typename IterT >
math::Extrema | opExtrema (const IterT &iter, const OperatorT &op=OperatorT(), bool threaded=true)
| Same as opStatistics except it returns a math::Extrema vs a math::Stats.

## Detailed Description

Functions to efficiently compute histograms, extrema (min/max) and statistics (mean, variance, etc.) of grid values.