OMToolkit
1.0
The polygonal mesh processing tool.
|
#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) |
Class for descriptor computation in mesh data
Attribute scalar definition
Matrix type definition
Mesh type definition
typedef MeshT::Normal OMToolkit::OMMatrixDescriptors::NormalT |
Normal type definition
typedef MeshT::Scalar OMToolkit::OMMatrixDescriptors::ScalarT |
Scalar type definition
OMToolkit::OMMatrixDescriptors::OMMatrixDescriptors | ( | MeshT * | mesh | ) |
Constructor initializes this class for ongoing computations
mesh | Input mesh |
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
matrixH | The matrix handle |
curvatureMagH | The curvature magnitude handle |
matrix_size | The size of matrix used for descriptor computation (relative to the median of edge lengths) |
matrix_resolution | The resolution of the matrix |
desc_diameter | The 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
matrixH | The matrix handle |
curvatureMagH | The curvature magnitude handle |
finalNum | The final number of feature points in the mesh |