Lagrange
Loading...
Searching...
No Matches
TextureRasterizerOptions Struct Reference

Options for computing the texture map and confidence from a rendering. More...

#include <lagrange/texproc/TextureRasterizer.h>

Public Attributes

unsigned int depth_discontinuity_erosion_radius = 20
 Erosion radius (in texels).
 
double depth_discontinuity_threshold = 1
 Depth discontinuity threshold (in view space).
 
double depth_precision = 1e-3
 Depth precision (for determining visibility).
 
size_t width = 1024
 Texture width.
 
size_t height = 1024
 Texture height.
 

Detailed Description

Options for computing the texture map and confidence from a rendering.

Member Data Documentation

◆ depth_precision

double depth_precision = 1e-3

Depth precision (for determining visibility).

Ideally we'd use raytracing to determine if a texel is visible. But for simplicity we just compare the texel depth with depth map value at the screen location.

For perspective cameras this is a relative tolerance, a texel at depth z is considered visible when z < depth * (1 + depth_precision). For orthographic cameras this is an absolute tolerance, a texel is considered visible when z < depth + depth_precision.


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