Functions to efficiently compute histograms and statistics (mean, variance, etc.) of grid values.
More...
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
Functions to efficiently compute histograms and statistics (mean, variance, etc.) of grid values.