14#include <lagrange/SurfaceMesh.h>
15#include <lagrange/image/Array3D.h>
16#include <lagrange/image/View3D.h>
22namespace lagrange::texproc {
66template <
typename ValueType>
70 image::experimental::View3D<const ValueType>
texture;
74 image::experimental::View3D<const float>
weights;
90template <
typename Scalar,
typename Index,
typename ValueType>
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:66
image::experimental::Array3D< ValueType > texture_compositing(const SurfaceMesh< Scalar, Index > &mesh, std::vector< ConstWeightedTextureView< ValueType > > textures, const CompositingOptions &options={})
Composite multiple textures into a single texture.
Definition texture_compositing.cpp:249
Multigrid solver options.
Definition texture_compositing.h:51
unsigned int num_gauss_seidel_iterations
Number of Gauss-Seidel iterations per multigrid level.
Definition texture_compositing.h:56
unsigned int num_multigrid_levels
Number of multigrid levels.
Definition texture_compositing.h:53
unsigned int num_v_cycles
Number of V-cycles to perform.
Definition texture_compositing.h:59
Options for texture compositing.
Definition texture_compositing.h:31
std::optional< std::pair< double, double > > clamp_to_range
Clamp out-of-range texels to the given range (nullopt to disable).
Definition texture_compositing.h:42
double value_weight
The weight for fitting the values of the signal.
Definition texture_compositing.h:33
bool smooth_low_weight_areas
Whether to smooth pixels with a low total weight (< 1).
Definition texture_compositing.h:47
unsigned int quadrature_samples
The number of quadrature samples to use for integration (in {1, 3, 6, 12, 24, 32}).
Definition texture_compositing.h:36
double jitter_epsilon
Jitter amount per texel (0 to deactivate).
Definition texture_compositing.h:39
A view of a texture with weights associated with each texel.
Definition texture_compositing.h:68
image::experimental::View3D< const ValueType > texture
Texture data for a specific view.
Definition texture_compositing.h:70
image::experimental::View3D< const float > weights
Confidence weights for each texel.
Definition texture_compositing.h:74