Lagrange
Loading...
Searching...
No Matches
TextureRasterizer< Scalar, Index > Class Template Reference

Given a mesh with UVs, unproject rendered images into a UV texture and confidence map. More...

#include <lagrange/texproc/TextureRasterizer.h>

Public Types

using Array3Df = image::experimental::Array3D<float>
 

Public Member Functions

 TextureRasterizer (const SurfaceMesh< Scalar, Index > &mesh, const TextureRasterizerOptions &options)
 Construct a new instance of the rasterizer.
 
 ~TextureRasterizer ()
 Destructor.
 
std::pair< Array3Df, Array3Df > weighted_texture_from_render (image::experimental::View3D< const float > image, const CameraOptions &options) const
 Unproject a rendered image into a UV texture and confidence map.
 

Detailed Description

template<typename Scalar, typename Index>
class lagrange::texproc::TextureRasterizer< Scalar, Index >

Given a mesh with UVs, unproject rendered images into a UV texture and confidence map.

Template Parameters
ScalarMesh scalar type.
IndexMesh index type.

Constructor & Destructor Documentation

◆ TextureRasterizer()

template<typename Scalar, typename Index>
TextureRasterizer ( const SurfaceMesh< Scalar, Index > & mesh,
const TextureRasterizerOptions & options )

Construct a new instance of the rasterizer.

Parameters
[in]meshInput mesh.
[in]optionsTexture and confidence options.

Member Function Documentation

◆ weighted_texture_from_render()

template<typename Scalar, typename Index>
std::pair< Array3Df, Array3Df > weighted_texture_from_render ( image::experimental::View3D< const float > image,
const CameraOptions & options ) const

Unproject a rendered image into a UV texture and confidence map.

Parameters
[in]imageInput rendered color image.
[in]optionsCamera option.
Returns
A pair of (texture, weight) images.

The documentation for this class was generated from the following file: