HDK
|
Implementation of morphological dilation and erosion. More...
#include <openvdb/Types.h>
#include <openvdb/Grid.h>
#include <openvdb/math/Math.h>
#include <openvdb/tree/TreeIterator.h>
#include <openvdb/tree/ValueAccessor.h>
#include <openvdb/tree/LeafManager.h>
#include "Prune.h"
#include "ValueTransformer.h"
#include <tbb/tbb_thread.h>
#include <tbb/task_scheduler_init.h>
#include <tbb/enumerable_thread_specific.h>
#include <tbb/parallel_for.h>
#include <functional>
#include <type_traits>
#include <vector>
Go to the source code of this file.
Namespaces | |
openvdb | |
openvdb::OPENVDB_VERSION_NAME | |
openvdb::OPENVDB_VERSION_NAME::tools | |
openvdb::OPENVDB_VERSION_NAME::tools::activation | |
Enumerations | |
enum | openvdb::OPENVDB_VERSION_NAME::tools::NearestNeighbors { openvdb::OPENVDB_VERSION_NAME::tools::NN_FACE = 6, openvdb::OPENVDB_VERSION_NAME::tools::NN_FACE_EDGE = 18, openvdb::OPENVDB_VERSION_NAME::tools::NN_FACE_EDGE_VERTEX = 26 } |
Voxel topology of nearest neighbors. More... | |
enum | openvdb::OPENVDB_VERSION_NAME::tools::TilePolicy { openvdb::OPENVDB_VERSION_NAME::tools::IGNORE_TILES, openvdb::OPENVDB_VERSION_NAME::tools::EXPAND_TILES, openvdb::OPENVDB_VERSION_NAME::tools::PRESERVE_TILES } |
Different policies when dilating trees with active tiles. More... | |
Functions | |
template<typename TreeType > | |
OPENVDB_STATIC_SPECIALIZATION void | openvdb::OPENVDB_VERSION_NAME::tools::dilateActiveValues (TreeType &tree, int iterations=1, NearestNeighbors nn=NN_FACE, TilePolicy mode=PRESERVE_TILES) |
Topologically dilate all active values (i.e. both voxels and tiles) in a tree using one of three nearest neighbor connectivity patterns. More... | |
template<typename TreeType > | |
OPENVDB_STATIC_SPECIALIZATION void | openvdb::OPENVDB_VERSION_NAME::tools::dilateActiveValues (tree::LeafManager< TreeType > &manager, int iterations=1, NearestNeighbors nn=NN_FACE, TilePolicy mode=PRESERVE_TILES) |
Topologically dilate all active values (i.e. both voxels and tiles) in a tree using one of three nearest neighbor connectivity patterns. More... | |
template<typename TreeType > | |
OPENVDB_STATIC_SPECIALIZATION void | openvdb::OPENVDB_VERSION_NAME::tools::dilateVoxels (TreeType &tree, int iterations=1, NearestNeighbors nn=NN_FACE) |
Topologically dilate all leaf-level active voxels in a tree using one of three nearest neighbor connectivity patterns. More... | |
template<typename TreeType > | |
OPENVDB_STATIC_SPECIALIZATION void | openvdb::OPENVDB_VERSION_NAME::tools::dilateVoxels (tree::LeafManager< TreeType > &manager, int iterations=1, NearestNeighbors nn=NN_FACE) |
Topologically dilate all leaf-level active voxels in a tree using one of three nearest neighbor connectivity patterns. More... | |
template<typename GridOrTree > | |
void | openvdb::OPENVDB_VERSION_NAME::tools::activate (GridOrTree &, const typename GridOrTree::ValueType &value, const typename GridOrTree::ValueType &tolerance=zeroVal< typename GridOrTree::ValueType >()) |
Mark as active any inactive tiles or voxels in the given grid or tree whose values are equal to value (optionally to within the given tolerance). More... | |
template<typename GridOrTree > | |
void | openvdb::OPENVDB_VERSION_NAME::tools::deactivate (GridOrTree &, const typename GridOrTree::ValueType &value, const typename GridOrTree::ValueType &tolerance=zeroVal< typename GridOrTree::ValueType >()) |
Mark as inactive any active tiles or voxels in the given grid or tree whose values are equal to value (optionally to within the given tolerance). More... | |
template<typename TreeType > | |
OPENVDB_STATIC_SPECIALIZATION void | openvdb::OPENVDB_VERSION_NAME::tools::erodeVoxels (TreeType &tree, int iterations=1, NearestNeighbors nn=NN_FACE) |
Topologically erode all leaf-level active voxels in the given tree. More... | |
template<typename TreeType > | |
OPENVDB_STATIC_SPECIALIZATION void | openvdb::OPENVDB_VERSION_NAME::tools::erodeVoxels (tree::LeafManager< TreeType > &manager, int iterations=1, NearestNeighbors nn=NN_FACE) |
Topologically erode all leaf-level active voxels in the given tree. More... | |
Implementation of morphological dilation and erosion.
Definition in file Morphology.h.