Field3D
|
Contains functions for resampling fields. More...
Go to the source code of this file.
Classes | |
struct | BoxFilter |
struct | Filter |
struct | GaussianFilter |
struct | MitchellFilter |
struct | TriangleFilter |
Namespaces | |
detail | |
Functions | |
V3f | detail::getDist (const V3i &doUpres, const V3f &srcP, const V3f &tgtP, const V3f &srcSize, const V3f &tgtSize) |
float | detail::getDist (const bool doUpres, const float &srcP, const float &tgtP, const float &srcSize, const float &tgtSize) |
template<typename Field_T , typename FilterOp_T > | |
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 . More... | |
template<typename Field_T , typename FilterOp_T > | |
bool | resample (const Field_T &src, Field_T &tgt, const V3i &newRes, const FilterOp_T &filterOp) |
Resamples the source field into the target field, such that the new data window is . More... | |
template<typename Field_T , typename FilterOp_T > | |
void | detail::separable (const Field_T &src, Field_T &tgt, const V3i &newRes, const FilterOp_T &filterOp, const size_t dim) |
template<typename Field_T , typename FilterOp_T > | |
bool | detail::separableResample (const Field_T &src, Field_T &tgt, const V3i &newRes, const FilterOp_T &filterOp) |
Resamples the source field into the target field, using separable execution, which is faster than resample(). More... | |
Box3i | detail::srcSupportBBox (const V3f &tgtP, const float support, const V3i &doUpres, const V3f &srcSize, const V3f &tgtSize) |
std::pair< int, int > | detail::srcSupportBBox (const float &tgtP, const float support, const bool doUpres, const float &srcSize, const float &tgtSize) |
Contains functions for resampling fields.
Definition in file Resample.h.
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 .
Definition at line 384 of file Resample.h.
References FIELD3D_NAMESPACE_HEADER_CLOSE, and detail::separableResample().
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 .
Definition at line 384 of file Resample.h.
References FIELD3D_NAMESPACE_HEADER_CLOSE, and detail::separableResample().