Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
texture_classification.h File Reference
#include <momentum/math/mesh.h>
#include <cstdint>
#include <vector>

Go to the source code of this file.

Classes

struct  momentum::TextureView
 View into a contiguous RGB texture image (non-owning). More...
struct  momentum::RegionColorsView
 View into a contiguous array of RGB region colors (non-owning). More...

Namespaces

namespace  momentum

Functions

std::vector< std::vector< int32_t > > momentum::classifyTrianglesByTexture (const Mesh &mesh, const TextureView &texture, const RegionColorsView &regionColors, float threshold=0.0f, int32_t numSamples=3)
 Classify mesh triangles into regions based on texture colors.
Mesh momentum::splitMeshByTextureRegion (const Mesh &mesh, const TextureView &texture, const RegionColorsView &regionColors, int32_t numBinarySearchSteps=8)
 Split mesh triangles along texture region boundaries.