Ponca  292d8d7132745e0d4242ff9a01e93697fc96b204
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::HRBF< P, _WeightKernel > Class Template Reference

Hermite Radial Basis Function (HRBF) implicit surface interpolation. More...

#include <hrbf.h>

Inheritance diagram for Ponca::HRBF< P, _WeightKernel >:
Collaboration diagram for Ponca::HRBF< P, _WeightKernel >:

Public Types

using DataPoint = P
using Scalar = typename DataPoint::Scalar
using MatrixType = typename DataPoint::MatrixType
using VectorType = typename DataPoint::VectorType
using MatrixDX = typename Eigen::Matrix<Scalar, DataPoint::Dim, Eigen::Dynamic>
using DenseVector = Eigen::Vector<Scalar, Eigen::Dynamic>
using DenseMatrix = Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic>
using WeightKernel = _WeightKernel
using NeighborFilter = DistWeightFilter<DataPoint, ConstantWeightKernel<Scalar>>
 writing implementations of function that are required to use HRBF fitting alongside Basket)

Public Member Functions

void init ()
 Set the scalar field values to 0 and reset the isNormalized() status.
template<typename IteratorBegin, typename IteratorEnd>
FIT_RESULT compute (const IteratorBegin &begin, const IteratorEnd &end)
 Convenience function for STL-like iterators Add neighbors stored in a container using STL-like iterators, and call finalize at the end.
template<typename IndexRange, typename PointContainer>
FIT_RESULT computeWithIds (const IndexRange &ids, const PointContainer &points)
 Compute function that iterates over a subset of sampled points from an STL-Like container.
Scalar potential (const VectorType &x) const
VectorType primitiveGradient (const VectorType &x) const
bool isStable () const
 Is the fitted primitive ready to use (finalize has been called and the result is stable).
bool setNeighborFilter (const NeighborFilter &)
const VectorType & project (const VectorType &x) const
constexpr bool isSigned ()
 Is scalar field signed.

Static Public Attributes

static constexpr Scalar eps = Eigen::NumTraits<Scalar>::epsilon()

Protected Attributes

MatrixDX m_node_centers
 Each column represents p_i: VectorX pi = _node_centers.col(i);.
DenseVector m_alphas
 Vector of scalar values alpha.
MatrixDX m_betas
 Each column represents beta_i: VectorX bi = _betas.col(i);.
FIT_RESULT m_eCurrentState {UNDEFINED}

Detailed Description

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
requires ProvidesNormal<P>
class Ponca::HRBF< P, _WeightKernel >

Hermite Radial Basis Function (HRBF) implicit surface interpolation.

Builds a scalar field \( f \) that interpolates both the positions and the normals of a set of oriented points.

Template Parameters
PPoint type, must provide normals (see ProvidesNormal)
_WeightKernelInterpolation kernel. Defaults to Pow3WeightKernel.

Definition at line 40 of file hrbf.h.

Member Typedef Documentation

◆ DataPoint

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
using Ponca::HRBF< P, _WeightKernel >::DataPoint = P

Definition at line 43 of file hrbf.h.

◆ DenseMatrix

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
using Ponca::HRBF< P, _WeightKernel >::DenseMatrix = Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic>

Definition at line 49 of file hrbf.h.

◆ DenseVector

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
using Ponca::HRBF< P, _WeightKernel >::DenseVector = Eigen::Vector<Scalar, Eigen::Dynamic>

Definition at line 48 of file hrbf.h.

◆ MatrixDX

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
using Ponca::HRBF< P, _WeightKernel >::MatrixDX = typename Eigen::Matrix<Scalar, DataPoint::Dim, Eigen::Dynamic>

Definition at line 47 of file hrbf.h.

◆ MatrixType

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
using Ponca::HRBF< P, _WeightKernel >::MatrixType = typename DataPoint::MatrixType

Definition at line 45 of file hrbf.h.

◆ NeighborFilter

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
using Ponca::HRBF< P, _WeightKernel >::NeighborFilter = DistWeightFilter<DataPoint, ConstantWeightKernel<Scalar>>

writing implementations of function that are required to use HRBF fitting alongside Basket)

Definition at line 231 of file hrbf.h.

◆ Scalar

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
using Ponca::HRBF< P, _WeightKernel >::Scalar = typename DataPoint::Scalar

Definition at line 44 of file hrbf.h.

◆ VectorType

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
using Ponca::HRBF< P, _WeightKernel >::VectorType = typename DataPoint::VectorType

Definition at line 46 of file hrbf.h.

◆ WeightKernel

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
using Ponca::HRBF< P, _WeightKernel >::WeightKernel = _WeightKernel

Definition at line 50 of file hrbf.h.

Member Function Documentation

◆ compute()

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
template<typename IteratorBegin, typename IteratorEnd>
FIT_RESULT Ponca::HRBF< P, _WeightKernel >::compute ( const IteratorBegin & begin,
const IteratorEnd & end )
inline

Convenience function for STL-like iterators Add neighbors stored in a container using STL-like iterators, and call finalize at the end.

The fit is evaluated multiple time if needed (see NEED_OTHER_PASS)

Definition at line 82 of file hrbf.h.

◆ computeWithIds()

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
template<typename IndexRange, typename PointContainer>
FIT_RESULT Ponca::HRBF< P, _WeightKernel >::computeWithIds ( const IndexRange & ids,
const PointContainer & points )
inline

Compute function that iterates over a subset of sampled points from an STL-Like container.

Template Parameters
IndexRangeAn STL-like container storing the indices of the neighbors
PointContainerAn STL-like container storing the points

Definition at line 160 of file hrbf.h.

◆ init()

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
void Ponca::HRBF< P, _WeightKernel >::init ( )
inline

Set the scalar field values to 0 and reset the isNormalized() status.

Definition at line 66 of file hrbf.h.

◆ isSigned()

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
bool Ponca::HRBF< P, _WeightKernel >::isSigned ( )
inlineconstexpr

Is scalar field signed.

If not, the method the sign of potential() must be ignored

Definition at line 238 of file hrbf.h.

◆ isStable()

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
bool Ponca::HRBF< P, _WeightKernel >::isStable ( ) const
inlinenodiscard

Is the fitted primitive ready to use (finalize has been called and the result is stable).

Definition at line 228 of file hrbf.h.

◆ potential()

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
Scalar Ponca::HRBF< P, _WeightKernel >::potential ( const VectorType & x) const
inlinenodiscard

Definition at line 174 of file hrbf.h.

◆ primitiveGradient()

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
VectorType Ponca::HRBF< P, _WeightKernel >::primitiveGradient ( const VectorType & x) const
inlinenodiscard

Definition at line 194 of file hrbf.h.

◆ project()

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
const VectorType & Ponca::HRBF< P, _WeightKernel >::project ( const VectorType & x) const
inline

Definition at line 236 of file hrbf.h.

◆ setNeighborFilter()

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
bool Ponca::HRBF< P, _WeightKernel >::setNeighborFilter ( const NeighborFilter & )
inline

Definition at line 234 of file hrbf.h.

Member Data Documentation

◆ eps

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
Scalar Ponca::HRBF< P, _WeightKernel >::eps = Eigen::NumTraits<Scalar>::epsilon()
staticconstexpr

Definition at line 52 of file hrbf.h.

◆ m_alphas

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
DenseVector Ponca::HRBF< P, _WeightKernel >::m_alphas
protected

Vector of scalar values alpha.

Definition at line 58 of file hrbf.h.

◆ m_betas

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
MatrixDX Ponca::HRBF< P, _WeightKernel >::m_betas
protected

Each column represents beta_i: VectorX bi = _betas.col(i);.

Definition at line 60 of file hrbf.h.

◆ m_eCurrentState

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
FIT_RESULT Ponca::HRBF< P, _WeightKernel >::m_eCurrentState {UNDEFINED}
protected

Definition at line 62 of file hrbf.h.

◆ m_node_centers

template<class P, typename _WeightKernel = Pow3WeightKernel<typename P::Scalar>>
MatrixDX Ponca::HRBF< P, _WeightKernel >::m_node_centers
protected

Each column represents p_i: VectorX pi = _node_centers.col(i);.

Definition at line 56 of file hrbf.h.