OpenVDB  1.1.0
Public Types | Public Member Functions | List of all members
Filter< GridT, InterruptT > Class Template Reference

Filtering of VDB volumes. More...

#include <Filter.h>

Public Types

typedef GridT GridType
typedef GridType::TreeType TreeType
typedef TreeType::LeafNodeType LeafType
typedef LeafType::ValueType ValueType
typedef tree::LeafManager
< TreeType
LeafManagerType
typedef LeafManagerType::LeafRange RangeType
typedef LeafManagerType::BufferType BufferType

Public Member Functions

 Filter (GridT &grid, InterruptT *interrupt=NULL)
 Constructor.
void mean (int width=1, int iterations=1, bool serial=false)
 One iteration of a fast separable mean-value (i.e. box) filter.
void gaussian (int width=1, int iterations=1, bool serial=false)
 One iteration of a fast separable gaussian filter.
void median (int width=1, int iterations=1, bool serial=false)
 One iteration of a median-value filter.
void offset (float offset, bool serial=false)
 Offsets (i.e. adds) a constant value to all active voxels.
void operator() (const RangeType &r) const
 Used internally by tbb::parallel_for()

Detailed Description

template<typename GridT, typename InterruptT = util::NullInterrupter>
class openvdb::v1_1_0::tools::Filter< GridT, InterruptT >

Filtering of VDB volumes.

Member Typedef Documentation

typedef GridT GridType
typedef TreeType::LeafNodeType LeafType
typedef GridType::TreeType TreeType
typedef LeafType::ValueType ValueType

Constructor & Destructor Documentation

Filter ( GridT &  grid,
InterruptT *  interrupt = NULL 
)
inline

Constructor.

Member Function Documentation

void gaussian ( int  width = 1,
int  iterations = 1,
bool  serial = false 
)
inline

One iteration of a fast separable gaussian filter.

Note
This is approximated as 4 iterations of a separable mean filter which typically leads an approximation that's better than 95%!
void mean ( int  width = 1,
int  iterations = 1,
bool  serial = false 
)
inline

One iteration of a fast separable mean-value (i.e. box) filter.

void median ( int  width = 1,
int  iterations = 1,
bool  serial = false 
)
inline

One iteration of a median-value filter.

Note
This filter is not separable and is hence relatively slow!
void offset ( float  offset,
bool  serial = false 
)
inline

Offsets (i.e. adds) a constant value to all active voxels.

void operator() ( const RangeType r) const
inline

Used internally by tbb::parallel_for()

Note
Never call this method directly!

The documentation for this class was generated from the following file: