Lagrange
Loading...
Searching...
No Matches
texture_stitching.h
1/*
2 * Copyright 2025 Adobe. All rights reserved.
3 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License. You may obtain a copy
5 * of the License at http://www.apache.org/licenses/LICENSE-2.0
6 *
7 * Unless required by applicable law or agreed to in writing, software distributed under
8 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9 * OF ANY KIND, either express or implied. See the License for the specific language
10 * governing permissions and limitations under the License.
11 */
12#pragma once
13
14#include <lagrange/SurfaceMesh.h>
15#include <lagrange/image/View3D.h>
16
17#include <string_view>
18
19namespace lagrange::texproc {
20
23
28{
30 bool exterior_only = false;
31
33 unsigned int quadrature_samples = 6;
34
36 double jitter_epsilon = 1e-4;
37
39 bool __randomize = false;
40};
41
53template <typename Scalar, typename Index, typename ValueType>
56 image::experimental::View3D<ValueType> texture,
57 const StitchingOptions& options = {});
58
60
61} // namespace lagrange::texproc
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:186
Options for texture stitching.
Definition texture_stitching.h:28
bool exterior_only
If true, interior texels are fixed degrees of freedom.
Definition texture_stitching.h:30
bool __randomize
Initially the boundary texels to random values (for debugging purposes).
Definition texture_stitching.h:39
unsigned int quadrature_samples
The number of quadrature samples to use for integration (in {1, 3, 6, 12, 24, 32}).
Definition texture_stitching.h:33
double jitter_epsilon
Jitter amount per texel (0 to deactivate).
Definition texture_stitching.h:36