Lagrange
Loading...
Searching...
No Matches
geodesic_dilation.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 unsigned int dilation_radius = 10;
31
33 bool output_position_map = false;
34};
35
49template <typename Scalar, typename Index, typename ValueType>
52 image::experimental::View3D<ValueType> texture,
53 const DilationOptions& options = {});
54
56
57} // namespace lagrange::texproc
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:66
void geodesic_dilation(const SurfaceMesh< Scalar, Index > &mesh, image::experimental::View3D< ValueType > texture, const DilationOptions &options={})
Extend pixels of a texture beyond the defined UV mesh by walking along the 3D surface.
Definition geodesic_dilation.cpp:201
Options for geodesic texture dilation and position map computation.
Definition geodesic_dilation.h:28
bool output_position_map
If true, write a dilated position map instead to the output texture image.
Definition geodesic_dilation.h:33
unsigned int dilation_radius
The radius by which the texture should be dilated into the gutter.
Definition geodesic_dilation.h:30