25 template <
typename Scalar>
45 template <
typename ComputeObject,
typename ItB,
typename ItE,
typename Project = DirectProjectionOperator>
65 template <
typename ComputeObject,
typename Po
intContainer,
typename Project = DirectProjectionOperator>
69 return compute(
_co, std::begin(container), std::end(container),
_p);
87 template <
typename ComputeObject,
typename IdxRange,
typename PointContainer,
88 typename Project = DirectProjectionOperator>
97 static constexpr Scalar
epsDefault = Eigen::NumTraits<Scalar>::dummy_precision();
121 template <
typename ComputeObject,
typename Func,
typename Project = DirectProjectionOperator>
Aggregator class used to declare specialized structures using CRTP.
This Source Code Form is subject to the terms of the Mozilla Public License, v.
FIT_RESULT
Enum corresponding to the state of a fitting method (and what the finalize function returns)
@ UNDEFINED
The fitting is undefined, you can't use it for valid results.
FIT_RESULT computeWithIds(IndexRange ids, const PointContainer &points)
Convenience function to iterate over a subset of samples in a PointContainer Add neighbors stored in ...
FIT_RESULT compute(const IteratorBegin &begin, const IteratorEnd &end)
Convenience function for STL-like iterators Add neighbors stored in a container using STL-like iterat...
ComputeObject is a virtual object that represents an algorithm which can be used with the compute fun...
Computes the fit using the Moving Least Squares approach.
Scalar eps
Epsilon value for stopping MLS iterations.
static constexpr int nIterDefault
Default maximum number of MLS iterations.
unsigned int nIter
Maximum number of MLS iterations.
static constexpr Scalar epsDefault
Default epsilon value for stopping MLS iterations.
FIT_RESULT computeWithIds(ComputeObject &_co, const IdxRange &_range, const PointContainer &_container, const Project &_p=Project{}) const
Computes the fit using the MLS iteration process.
FIT_RESULT compute(ComputeObject &_co, const ItB &_itb, const ItE &_ite, const Project &_p=Project{}) const
Computes the fit using the MLS iteration process.
FIT_RESULT compute(ComputeObject &_co, const PointContainer &container, const Project &_p=Project{})
Computes the fit using the MLS iteration process.