|
Field3D
|
Contains MIP-related utility functions. More...
#include <vector>#include <boost/thread/thread.hpp>#include <boost/thread/mutex.hpp>#include "Resample.h"#include "SparseField.h"#include "Types.h"#include "ns.h"Go to the source code of this file.
Classes | |
| struct | detail::ComputationType< T > |
| Used to delegate the choice of bit depth to process at. More... | |
| struct | detail::ComputationType< Field3D::half > |
| Specialization for half float. More... | |
| struct | detail::MIPSeparableThreadOp< Field_T, FilterOp_T, IsAnalytic_T > |
Namespaces | |
| namespace | detail |
Functions | |
| FIELD3D_API FieldMapping::Ptr | detail::adjustedMIPFieldMapping (const FieldRes *base, const V3i &baseRes, const Box3i &extents, const size_t level) |
| template<typename Field_T > | |
| bool | detail::checkInputEmpty (const Field_T &, const Field_T &, const Box3i &, const float, const size_t) |
| Fallback version always returns false. More... | |
| template<typename Data_T > | |
| bool | detail::checkInputEmpty (const SparseField< Data_T > &src, const SparseField< Data_T > &, const Box3i &tgtBox, const float support, const size_t dim) |
| FIELD3D_NAMESPACE_OPEN V3i | computeOffset (const FieldRes &f) |
| Computes the origin/offset of a field. More... | |
| template<typename MIPField_T , typename Filter_T > | |
| MIPField_T::Ptr | makeMIP (const typename MIPField_T::NestedType &base, const int minSize, const size_t numThreads) |
| Constructs a MIP representation of the given field. More... | |
| template<typename MIPField_T , typename Filter_T > | |
| MIPField_T::Ptr | makeMIP (const typename MIPField_T::NestedType &base, const int minSize, const V3i &offset, const size_t numThreads) |
| Constructs a MIP representation of the given field, with optional offset vector. The offset vector indicates the 'true' voxel space coordinate of the (0, 0, 0) voxel, such that a consistent voxel placement can be used for the MIP levels. More... | |
| template<typename Field_T , typename FilterOp_T > | |
| void | detail::mipResample (const Field_T &base, const Field_T &src, Field_T &tgt, const size_t level, const V3i &offset, const FilterOp_T &filterOp, const size_t numThreads) |
| FIELD3D_API V3i | detail::mipResolution (const V3i &baseRes, const size_t level, const V3i &add) |
| template<typename Field_T , typename FilterOp_T > | |
| void | detail::mipSeparable (const Field_T &src, Field_T &tgt, const V3i &oldRes, const V3i &newRes, const size_t level, const V3i &add, const FilterOp_T &filterOp, const size_t dim, const size_t numThreads) |
| Threaded implementation of separable MIP filtering. More... | |
| template<typename Data_T > | |
| size_t | detail::threadingBlockSize (const DenseField< Data_T > &) |
| Constant size for all dense fields. More... | |
| template<typename Data_T > | |
| size_t | detail::threadingBlockSize (const SparseField< Data_T > &f) |
| Use block size for sparse fields. More... | |
Variables | |
| FIELD3D_API const std::string | detail::k_mipOffsetStr = "mipoffset" |
Contains MIP-related utility functions.
Definition in file MIPUtil.h.
| FIELD3D_NAMESPACE_OPEN V3i computeOffset | ( | const FieldRes & | f | ) |
Computes the origin/offset of a field.
Definition at line 157 of file MIPUtil.cpp.
References detail::floor(), and FieldRes::mapping().
| MIPField_T::Ptr makeMIP | ( | const typename MIPField_T::NestedType & | base, |
| const int | minSize, | ||
| const V3i & | offset, | ||
| const size_t | numThreads | ||
| ) |
Constructs a MIP representation of the given field, with optional offset vector. The offset vector indicates the 'true' voxel space coordinate of the (0, 0, 0) voxel, such that a consistent voxel placement can be used for the MIP levels.
Definition at line 490 of file MIPUtil.h.
References detail::mipResample().
| MIPField_T::Ptr makeMIP | ( | const typename MIPField_T::NestedType & | base, |
| const int | minSize, | ||
| const size_t | numThreads | ||
| ) |