Performs multi-threaded interface tracking of narrow band level sets.
More...
#include <LevelSetTracker.h>
Inherited by LevelSetFilter< GridT, MaskT, InterruptT >.
template<typename GridT, typename InterruptT = util::NullInterrupter>
class openvdb::v3_0_0::tools::LevelSetTracker< GridT, InterruptT >
Performs multi-threaded interface tracking of narrow band level sets.
| typedef TreeType::template ValueConverter<bool>::Type BoolMaskType |
Main constructor.
- Exceptions
-
Shallow copy constructor called by tbb::parallel_for() threads during filtering.
| BOOST_STATIC_ASSERT |
( |
boost::is_floating_point< ValueType >::value |
| ) |
|
| bool checkInterrupter |
( |
| ) |
|
|
inline |
- Returns
- false if the process was interrupted
| void dilate |
( |
int |
iterations = 1 | ) |
|
|
inline |
Fast but approximate dilation of the narrow band.
- Note
- This method works fine with low-order temporal and spatial schemes.
| void erode |
( |
int |
iterations = 1 | ) |
|
|
inline |
Erodes the width of the narrow-band and update the background values.
- Exceptions
-
| ValueError | if iterations is larger then the current half-width. |
| int getGrainSize |
( |
| ) |
const |
|
inline |
- Returns
- the grain-size used for multi-threading
| int getNormCount |
( |
| ) |
const |
|
inline |
- Returns
- The number of normalizations performed per track or normalize call.
- Returns
- the spatial finite difference scheme
- Returns
- the temporal integration scheme
| void normalize |
( |
const MaskType * |
mask | ) |
|
Iterative normalization, i.e. solving the Eikonal equation.
- Note
- The mask it optional and by default it is ignored.
Iterative normalization, i.e. solving the Eikonal equation.
| void normalize |
( |
const MaskT * |
mask | ) |
|
|
inline |
Remove voxels that are outside the narrow band. (substep of track)
| void setGrainSize |
( |
int |
grainsize | ) |
|
|
inline |
Set the grain-size used for multi-threading.
- Note
- A grainsize of 0 or less disables multi-threading!
| void setNormCount |
( |
int |
n | ) |
|
|
inline |
Set the number of normalizations performed per track or normalize call.
Set the spatial finite difference scheme.
Set the spatial finite difference scheme.
| void startInterrupter |
( |
const char * |
msg | ) |
|
|
inline |
Track the level set interface, i.e. rebuild and normalize the narrow band of the level set.
The documentation for this class was generated from the following file: