OpenVDB
3.0.0
|
Performs multi-threaded interface tracking of narrow band level sets. More...
#include <LevelSetTracker.h>
Inherited by LevelSetFilter< GridT, MaskT, InterruptT >.
Public Types | |
typedef GridT | GridType |
typedef GridT::TreeType | TreeType |
typedef TreeType::LeafNodeType | LeafType |
typedef TreeType::ValueType | ValueType |
typedef tree::LeafManager< TreeType > | LeafManagerType |
typedef LeafManagerType::RangeType | RangeType |
typedef LeafManagerType::LeafRange | LeafRange |
typedef LeafManagerType::BufferType | BufferType |
typedef TreeType::template ValueConverter< bool >::Type | BoolMaskType |
Public Member Functions | |
BOOST_STATIC_ASSERT (boost::is_floating_point< ValueType >::value) | |
LevelSetTracker (GridT &grid, InterruptT *interrupt=NULL) | |
Main constructor. More... | |
LevelSetTracker (const LevelSetTracker &other) | |
Shallow copy constructor called by tbb::parallel_for() threads during filtering. More... | |
virtual | ~LevelSetTracker () |
template<typename MaskType > | |
void | normalize (const MaskType *mask) |
Iterative normalization, i.e. solving the Eikonal equation. More... | |
void | normalize () |
Iterative normalization, i.e. solving the Eikonal equation. More... | |
void | track () |
Track the level set interface, i.e. rebuild and normalize the narrow band of the level set. More... | |
void | prune () |
Remove voxels that are outside the narrow band. (substep of track) More... | |
void | dilate (int iterations=1) |
Fast but approximate dilation of the narrow band. More... | |
void | erode (int iterations=1) |
Erodes the width of the narrow-band and update the background values. More... | |
math::BiasedGradientScheme | getSpatialScheme () const |
void | setSpatialScheme (math::BiasedGradientScheme scheme) |
Set the spatial finite difference scheme. More... | |
math::TemporalIntegrationScheme | getTemporalScheme () const |
void | setTemporalScheme (math::TemporalIntegrationScheme scheme) |
Set the spatial finite difference scheme. More... | |
int | getNormCount () const |
void | setNormCount (int n) |
Set the number of normalizations performed per track or normalize call. More... | |
int | getGrainSize () const |
void | setGrainSize (int grainsize) |
Set the grain-size used for multi-threading. More... | |
ValueType | voxelSize () const |
void | startInterrupter (const char *msg) |
void | endInterrupter () |
bool | checkInterrupter () |
const GridType & | grid () const |
LeafManagerType & | leafs () |
const LeafManagerType & | leafs () const |
template<typename MaskT > | |
void | normalize (const MaskT *mask) |
Performs multi-threaded interface tracking of narrow band level sets.
typedef TreeType::template ValueConverter<bool>::Type BoolMaskType |
typedef GridT GridType |
typedef tree::LeafManager<TreeType> LeafManagerType |
typedef LeafManagerType::LeafRange LeafRange |
typedef TreeType::LeafNodeType LeafType |
typedef LeafManagerType::RangeType RangeType |
typedef GridT::TreeType TreeType |
typedef TreeType::ValueType ValueType |
LevelSetTracker | ( | GridT & | grid, |
InterruptT * | interrupt = NULL |
||
) |
Main constructor.
RuntimeError | if the grid is not a level set |
LevelSetTracker | ( | const LevelSetTracker< GridT, InterruptT > & | other | ) |
Shallow copy constructor called by tbb::parallel_for() threads during filtering.
|
inlinevirtual |
BOOST_STATIC_ASSERT | ( | boost::is_floating_point< ValueType >::value | ) |
|
inline |
|
inline |
Fast but approximate dilation of the narrow band.
|
inline |
|
inline |
Erodes the width of the narrow-band and update the background values.
ValueError | if iterations is larger then the current half-width. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void normalize | ( | const MaskType * | mask | ) |
Iterative normalization, i.e. solving the Eikonal equation.
|
inline |
Iterative normalization, i.e. solving the Eikonal equation.
|
inline |
|
inline |
Remove voxels that are outside the narrow band. (substep of track)
|
inline |
Set the grain-size used for multi-threading.
|
inline |
Set the number of normalizations performed per track or normalize call.
|
inline |
Set the spatial finite difference scheme.
|
inline |
Set the spatial finite difference scheme.
|
inline |
|
inline |
Track the level set interface, i.e. rebuild and normalize the narrow band of the level set.
|
inline |