HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GridStats.h File Reference

Re-computes min/max/avg/var/bbox information for each node in a pre-existing NanoVDB grid. More...

#include <nanovdb/NanoVDB.h>
#include "Range.h"
#include "ForEach.h"
#include <limits.h>
#include <atomic>
#include <iostream>
+ Include dependency graph for GridStats.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nanovdb::Extrema< ValueT, Rank >
 
class  nanovdb::Extrema< ValueT, 0 >
 Template specialization of Extrema on scalar value types, i.e. rank = 0. More...
 
class  nanovdb::Extrema< VecT, 1 >
 Template specialization of Extrema on vector value types, i.e. rank = 1. More...
 
struct  nanovdb::Extrema< VecT, 1 >::Pair
 
class  nanovdb::Stats< ValueT, Rank >
 
class  nanovdb::Stats< ValueT, 0 >
 This class computes statistics (minimum value, maximum value, mean, variance and standard deviation) of a population of floating-point values. More...
 
class  nanovdb::Stats< ValueT, 1 >
 This class computes statistics (minimum value, maximum value, mean, variance and standard deviation) of a population of floating-point values. More...
 
struct  nanovdb::NoopStats< ValueT >
 No-op Stats class. More...
 
class  nanovdb::GridStats< GridT, StatsT >
 Allows for the construction of NanoVDB grids without any dependency. More...
 
struct  nanovdb::GridStats< GridT, StatsT >::NodeStats
 

Namespaces

 nanovdb
 

Enumerations

enum  nanovdb::StatsMode : uint32_t {
  nanovdb::StatsMode::Disable = 0, nanovdb::StatsMode::BBox = 1, nanovdb::StatsMode::MinMax = 2, nanovdb::StatsMode::All = 3,
  nanovdb::StatsMode::Default = 3, nanovdb::StatsMode::End = 4
}
 Grid flags which indicate what extra information is present in the grid buffer. More...
 

Functions

template<typename BuildT >
void nanovdb::gridStats (NanoGrid< BuildT > &grid, StatsMode mode=StatsMode::Default)
 Re-computes the min/max, stats and bbox information for an existing NanoVDB Grid. More...
 
template<typename BuildT >
Extrema< typename NanoGrid
< BuildT >::ValueType > 
nanovdb::getExtrema (const NanoGrid< BuildT > &grid, const CoordBBox &bbox)
 return the extrema of all the values in a grid that intersects the specified bounding box. More...
 

Detailed Description

Re-computes min/max/avg/var/bbox information for each node in a pre-existing NanoVDB grid.

Author
Ken Museth
Date
August 29, 2020

Definition in file GridStats.h.