45#ifndef _INCLUDED_Field3D_MinMaxUtil_H_
46#define _INCLUDED_Field3D_MinMaxUtil_H_
52#include <boost/thread/thread.hpp>
53#include <boost/thread/mutex.hpp>
68template <
typename MIPField_T>
69std::pair<typename MIPField_T::Ptr, typename MIPField_T::Ptr>
70makeMinMax(
const typename MIPField_T::NestedType &base,
86template <
typename MIPField_T>
87std::pair<typename MIPField_T::Ptr, typename MIPField_T::Ptr>
91 typedef typename MIPField_T::Ptr
MipPtr;
92 typedef typename MIPField_T::NestedType
Field;
93 typedef typename MIPField_T::NestedType::Ptr FieldPtr;
96 std::pair<MipPtr, MipPtr> result;
104 res.x = std::max(
res.x, 2);
105 res.y = std::max(
res.y, 2);
106 res.z = std::max(
res.z, 2);
Contains MIP-related utility functions.
const char * k_minSuffix
The standard 'min' suffix - "_min".
FIELD3D_NAMESPACE_OPEN std::pair< typename MIPField_T::Ptr, typename MIPField_T::Ptr > makeMinMax(const typename MIPField_T::NestedType &base, const float resMult, const size_t numThreads)
Constructs a min/max MIP representation of the given field.
const char * k_maxSuffix
The standard 'max' suffix - "_max".
FIELD3D_NAMESPACE_OPEN bool resample(const Field_T &src, Field_T &tgt, const V3i &newRes, const FilterOp_T &filter)
Resamples the source field into the target field, such that the new data window is @dataWindow.
const Box3i & dataWindow() const
Returns the data window. Any coordinate inside this window is safe to pass to value() in the Field su...
#define FIELD3D_NAMESPACE_HEADER_CLOSE