OMToolkit  1.0
The polygonal mesh processing tool.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Types | Public Member Functions | List of all members
OMToolkit::OMMatrixDescriptors Class Reference

#include <OMMatrixDescriptors.h>

Public Types

typedef Types::ModuleMeshd MeshT
 
typedef MeshT::Scalar ScalarT
 
typedef MeshT::Normal NormalT
 
typedef MeshT::AttributeScalar AScalarT
 
typedef
Types::OMSerializableMatrix
< AScalarT
MatrixT
 

Public Member Functions

 OMMatrixDescriptors (MeshT *mesh)
 
bool ComputePoints (OpenMesh::VPropHandleT< MatrixT > matrixH, OpenMesh::VPropHandleT< AScalarT > curvatureMagH, int finalNum)
 
std::vector< std::vector< float > > ComputeDescriptors (OpenMesh::VPropHandleT< MatrixT > matrixH, OpenMesh::VPropHandleT< AScalarT > curvatureMagH, float matrix_size, int matrix_resolution, float desc_diameter)
 

Detailed Description

Class for descriptor computation in mesh data

Member Typedef Documentation

Attribute scalar definition

Matrix type definition

Mesh type definition

Normal type definition

Scalar type definition

Constructor & Destructor Documentation

OMToolkit::OMMatrixDescriptors::OMMatrixDescriptors ( MeshT mesh)

Constructor initializes this class for ongoing computations

Parameters
meshInput mesh

Member Function Documentation

std::vector< std::vector< float > > OMToolkit::OMMatrixDescriptors::ComputeDescriptors ( OpenMesh::VPropHandleT< MatrixT matrixH,
OpenMesh::VPropHandleT< AScalarT curvatureMagH,
float  matrix_size,
int  matrix_resolution,
float  desc_diameter 
)

The function extracts the descriptors from the points marked as feature points Format of the output: Vector of the vertices features Each row contains ID of vertex + 128 dimensional feature vector

See Also
ComputePoints
Parameters
matrixHThe matrix handle
curvatureMagHThe curvature magnitude handle
matrix_sizeThe size of matrix used for descriptor computation (relative to the median of edge lengths)
matrix_resolutionThe resolution of the matrix
desc_diameterThe descriptor diameter
bool OMToolkit::OMMatrixDescriptors::ComputePoints ( OpenMesh::VPropHandleT< MatrixT matrixH,
OpenMesh::VPropHandleT< AScalarT curvatureMagH,
int  finalNum 
)

The function computes feature points using pre-computed curvature on the mesh

Parameters
matrixHThe matrix handle
curvatureMagHThe curvature magnitude handle
finalNumThe final number of feature points in the mesh

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