10#include PONCA_MULTIARCH_INCLUDE_CU_STD(utility)
31 template <
class DataPo
int>
36 using Scalar =
typename DataPoint::Scalar;
111 template <
class DataPo
int>
116 using Scalar =
typename DataPoint::Scalar;
174 template <
class DataPo
int,
class WeightKernel>
179 using Scalar =
typename DataPoint::Scalar;
189 static constexpr bool isCompact = WeightKernel::isCompact;
243 const DataPoint& )
const;
267 const DataPoint& )
const;
284 const DataPoint& )
const;
305 const DataPoint& )
const;
327 const DataPoint& )
const;
347 template <
class DataPo
int,
template <
typename>
typename _NeighborhoodFrame>
352 using Scalar =
typename DataPoint::Scalar;
379 return {
Scalar(1), NeighborhoodFrame::convertToLocalBasis(
_q.pos())};
388 const DataPoint& )
const
390 return VectorType::Zeros();
399 const DataPoint& )
const
401 return MatrixType::Zeros();
409 const DataPoint& )
const
419 const DataPoint& )
const
430 const DataPoint& )
const
432 return VectorType::Zeros();
443 template <
class DataPo
int,
typename NeighborFilter>
447 using Base = NeighborFilter;
449 using Scalar =
typename DataPoint::Scalar;
480 template <
class DataPo
int>
489 template <
class DataPo
int>
497#include "weightFunc.hpp"
Aggregator class used to declare specialized structures using CRTP.
Weight neighbors according to the Euclidean distance between a query and a reference position.
Scalar scaledw(const VectorType &_q, const DataPoint &) const
First order derivative in scale .
Scalar scaled2w(const VectorType &_q, const DataPoint &) const
Second order derivative in scale .
VectorType scaleSpaced2w(const VectorType &_q, const DataPoint &) const
Cross derivative in scale and in space (for each spatial dimension .
MatrixType spaced2w(const VectorType &_q, const DataPoint &) const
Second order derivative in space (for each spatial dimension .
typename DataPoint::MatrixType MatrixType
Matrix type from DataPoint.
DistWeightFunc(const VectorType &_evalPos=VectorType::Zero(), const Scalar &_t=Scalar(1.))
Constructor that defines the current evaluation scale.
Scalar evalScale() const
Access to the evaluation scale set during the initialization.
VectorType spacedw(const VectorType &_q, const DataPoint &) const
First order derivative in space (for each spatial dimension .
std::pair< Scalar, VectorType > WeightReturnType
Return type of the method #w()
typename DataPoint::Scalar Scalar
Scalar type from DataPoint.
WeightReturnType operator()(const DataPoint &q) const
Compute the weight of the given query with respect to its coordinates.
WeightKernel m_wk
1D function applied to weight queries
static constexpr bool isCompact
Flag indicating if the weighting kernel is compact of not.
DistWeightFunc(const DataPoint &_evalPoint, const Scalar &_t=Scalar(1.))
!
Scalar m_t
Evaluation scale.
typename DataPoint::VectorType VectorType
Vector type from DataPoint.
This class extends a NeighborFilter class to also store the normal of the evaluation point,...
typename DataPoint::Scalar Scalar
Scalar type from DataPoint.
const VectorType & evalNormal() const
Access to the evaluation normal set during the initialization.
std::pair< Scalar, VectorType > WeightReturnType
Return type of the method #w()
typename DataPoint::MatrixType MatrixType
Matrix type from DataPoint.
NeighborFilterStoreNormal(const VectorType &_evalPos=VectorType::Zero(), const Scalar &_t=Scalar(0), const VectorType &_evalNormal=VectorType::Zero())
Constructor that defines the current evaluation scale.
typename DataPoint::VectorType VectorType
Vector type from DataPoint.
VectorType m_n
Evaluation normal.
NeighborhoodFrame that express 3d points relatively to a prescribed center.
const VectorType & evalPos() const
Get access to the stored points of evaluation.
VectorType convertToLocalBasis(const VectorType &_q, bool _isPositionVector=true) const
Convert query from global to local coordinate system, such as .
VectorType convertToGlobalBasis(const VectorType &_q, bool _isPositionVector=true) const
Convert query from local to global coordinate system, such as .
void changeNeighborhoodFrame(const VectorType &_newEvalPos)
Change neighborhood frame (move basis center)
static constexpr bool hasLocalFrame
Flag indicating that this class modifies the coordinates when passing from global to local.
typename DataPoint::VectorType VectorType
Vector type from DataPoint.
typename DataPoint::Scalar Scalar
Scalar type from DataPoint.
NeighborhoodFrame that keep points in the global frame without applying any transformation This class...
void changeNeighborhoodFrame(const VectorType &)
Change neighborhood frame (has no effect for global basis)
static constexpr bool hasLocalFrame
Flag indicating that this class does not modify the coordinates when passing from global to local.
const VectorType & convertToLocalBasis(const VectorType &_q, bool=true) const
Convert query from global to local coordinate system : does nothing as this is global frame.
typename DataPoint::VectorType VectorType
Vector type from DataPoint.
const VectorType & convertToGlobalBasis(const VectorType &_q, bool=true) const
Convert position from local to global coordinate system : does nothing as this is global frame.
typename DataPoint::Scalar Scalar
Scalar type from DataPoint.
Weighting function that set uniform weight to all samples.
MatrixType spaced2w(const VectorType &, const DataPoint &) const
Second order derivative in space (for each spatial dimension , which are always $0$.
NoWeightFuncBase(const VectorType &v=VectorType::Zero(), Scalar=0)
Default constructor.
typename DataPoint::MatrixType MatrixType
Matrix type from DataPoint.
VectorType scaleSpaced2w(const VectorType &, const DataPoint &) const
Cross derivative in scale and in space (for each spatial dimension , which are always $0$.
typename DataPoint::Scalar Scalar
Scalar type from DataPoint.
VectorType spacedw(const VectorType &, const DataPoint &) const
First order derivative in space (for each spatial dimension , which are always $0$.
Scalar scaled2w(const VectorType &, const DataPoint &) const
Second order derivative in scale , which are always $0$.
Scalar scaledw(const VectorType &, const DataPoint &) const
First order derivative in scale , which are always $0$.
typename DataPoint::VectorType VectorType
Vector type from DataPoint.
std::pair< Scalar, VectorType > WeightReturnType
Return type of the method #w()
WeightReturnType operator()(const DataPoint &_q) const
Compute the weight of the given query, which is always $1$.
NoWeightFuncBase(const DataPoint &v, Scalar=0)
!
This Source Code Form is subject to the terms of the Mozilla Public License, v.
Weighting function that set uniform weight to all samples and keep neighbors coordinates in global fr...
Weighting function that set uniform weight to all samples, but transform neighbors coordinates to loc...