14#include <lagrange/SurfaceMesh.h>
15#include <lagrange/image/View3D.h>
21namespace lagrange::texproc {
61template <
typename Scalar,
typename Index,
typename ValueType>
64 image::experimental::View3D<ValueType> texture,
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:66
void texture_stitching(const SurfaceMesh< Scalar, Index > &mesh, image::experimental::View3D< ValueType > texture, const StitchingOptions &options={})
Stitch the seams of a texture associated with a mesh.
Definition texture_stitching.cpp:197
Options for texture stitching.
Definition texture_stitching.h:30
double stiffness_regularization_weight
Regularize the stiffness matrix using a combinatorial Laplacian energy.
Definition texture_stitching.h:41
std::optional< std::pair< double, double > > clamp_to_range
Clamp out-of-range texels to the given range (nullopt to disable).
Definition texture_stitching.h:44
bool exterior_only
If true, interior texels are fixed degrees of freedom.
Definition texture_stitching.h:32
bool __randomize
Initially the boundary texels to random values (for debugging purposes).
Definition texture_stitching.h:47
unsigned int quadrature_samples
The number of quadrature samples to use for integration (in {1, 3, 6, 12, 24, 32}).
Definition texture_stitching.h:35
double jitter_epsilon
Jitter amount per texel (0 to deactivate).
Definition texture_stitching.h:38