Texture-space processing utilities.
More...
|
| template<typename Scalar, typename Index, typename ValueType> |
| 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.
|
| |
| template<typename Scalar, typename Index, typename ValueType> |
| 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.
|
| |
| template<typename Scalar, typename Index, typename ValueType> |
| void | texture_filtering (const SurfaceMesh< Scalar, Index > &mesh, image::experimental::View3D< ValueType > texture, const FilteringOptions &options={}) |
| | Smooth or sharpen a texture image associated with a mesh.
|
| |
| template<typename Scalar, typename Index, typename ValueType> |
| 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.
|
| |
| void | filter_low_confidences (span< std::pair< image::experimental::Array3D< float >, image::experimental::Array3D< float > > > textures_and_weights, float low_ratio_threshold) |
| | Discard low-confidence values.
|
| |
Texture-space processing utilities.
◆ geodesic_dilation()
template<typename
Scalar, typename Index, typename ValueType>
#include <lagrange/texproc/geodesic_dilation.h>
Extend pixels of a texture beyond the defined UV mesh by walking along the 3D surface.
- Parameters
-
| [in] | mesh | Input mesh with UV attributes. |
| [in,out] | texture | Texture to extend beyond UV mesh boundaries, or where to write the output position map. When writing a position map, the texture must have 3 channels. |
| [in] | options | Dilation options. |
- Template Parameters
-
| Scalar | Mesh scalar type. |
| Index | Mesh index type. |
| ValueType | Image value type. |
◆ texture_compositing()
template<typename
Scalar, typename Index, typename ValueType>
#include <lagrange/texproc/texture_compositing.h>
Composite multiple textures into a single texture.
- Parameters
-
| [in] | mesh | Input mesh with UV attributes. |
| [in] | textures | Textures to composite. Input textures must have the same dimensions. |
| [in] | options | Compositing options. |
- Template Parameters
-
| Scalar | Mesh scalar type. |
| Index | Mesh index type. |
| ValueType | Texture value type. |
- Returns
- Texture image resulting from the compositing.
◆ texture_filtering()
template<typename
Scalar, typename Index, typename ValueType>
#include <lagrange/texproc/texture_filtering.h>
Smooth or sharpen a texture image associated with a mesh.
- Parameters
-
| [in] | mesh | Input mesh with UV attributes. |
| [in,out] | texture | Texture image to filter. |
| [in] | options | Filtering options. |
- Template Parameters
-
| Scalar | Mesh scalar type. |
| Index | Mesh index type. |
| ValueType | Texture value type. |
◆ texture_stitching()
template<typename
Scalar, typename Index, typename ValueType>
#include <lagrange/texproc/texture_stitching.h>
Stitch the seams of a texture associated with a mesh.
- Parameters
-
| [in] | mesh | Input mesh with UV attributes. |
| [in,out] | texture | Texture to stitch. |
| [in] | options | Stitching options. |
- Template Parameters
-
| Scalar | Mesh scalar type. |
| Index | Mesh index type. |
| ValueType | Image value type. |
◆ filter_low_confidences()
| void filter_low_confidences |
( |
span< std::pair< image::experimental::Array3D< float >, image::experimental::Array3D< float > > > | textures_and_weights, |
|
|
float | low_ratio_threshold ) |
#include <lagrange/texproc/TextureRasterizer.h>
Discard low-confidence values.
Texels whose weight is < threshold * max_weight are set to zero.
- Parameters
-
| [in,out] | textures_and_weights | A list of compute texture and confidence images. |
| [in] | low_ratio_threshold | Threshold for discarding low-confidence texels. |