Euclid
Geometry Processing and Shape Analysis in C++
Euclid::WKS< Mesh > Class Template Reference

Wave kernel signature. More...

#include <WKS.h>

Public Types

using FT = FT_t< Mesh >
 
using Vec = Eigen::Matrix< FT, Eigen::Dynamic, 1 >
 
using Mat = Eigen::Matrix< FT, Eigen::Dynamic, Eigen::Dynamic >
 

Public Member Functions

void build (const Mesh &mesh, unsigned k=300)
 Build up the necessary computational components. More...
 
void build (const Mesh &mesh, const Vec *eigenvalues, const Mat *eigenfunctions)
 Build up the necessary computational components. More...
 
template<typename Derived >
void compute (Eigen::ArrayBase< Derived > &wks, unsigned escales=100, float emin=0.0f, float emax=-1.0f, float sigma=-1.0f)
 Compute wks for all vertices. More...
 

Detailed Description

template<typename Mesh>
class Euclid::WKS< Mesh >

WKS is a intrinsic, multiscale, local shape descriptor.

Reference

Aubry, M., Schlickewei U., Cremers D.. The wave kernel signature: A quantum mechanical approach to shape analysis. The IEEE International Conference on Computer Vision (ICCV), 2011.

Member Function Documentation

template<typename Mesh >
void Euclid::WKS< Mesh >::build ( const Mesh &  mesh,
unsigned  k = 300 
)

Compute eigen decomposition of the mesh Laplacian. Note that the result number of eigenstructures might be smaller than what is requested in the because of numerical issues and some may not converge.

Parameters
meshThe target mesh.
kNumber of eigenvalues/eigenvectors to use.
template<typename Mesh >
void Euclid::WKS< Mesh >::build ( const Mesh &  mesh,
const Vec *  eigenvalues,
const Mat *  eigenfunctions 
)

From precomputed eigen decomposition.

Parameters
meshThe target mesh.
eigenvaluesPrecomputed eigenvalues.
eigenfunctionsPrecomputed eigenfunctions.
template<typename Mesh >
template<typename Derived >
void Euclid::WKS< Mesh >::compute ( Eigen::ArrayBase< Derived > &  wks,
unsigned  escales = 100,
float  emin = 0.0f,
float  emax = -1.0f,
float  sigma = -1.0f 
)
Parameters
wksOutput wave kernel signatures
escalesNumber of energy scales to use.
eminThe minimum energy scale. Setting emin >= emax will use the parameters described in the paper.
emaxThe maximum energy scale. Setting emin >= emax will use the parameters described in the paper.
sigmaThe variance of the log normal distribution. Setting sigma <= 0 will use the parameters described in the paper.

The documentation for this class was generated from the following files: