Skip to contents

Large positional gradient with a small Gaussian means under-reconstruction (clone); with a large Gaussian it means over-reconstruction (split). Near-transparent Gaussians are pruned. The Gaussian count is not fixed in advance.

Usage

morie_gsplat_density(
  gradients,
  scales,
  opacities,
  grad_threshold = 2e-04,
  scale_threshold = 0.01,
  opacity_threshold = 0.005
)

Arguments

gradients

Per-Gaussian positional gradient magnitudes.

scales

Per-Gaussian scale (e.g. max eigenvalue).

opacities

Per-Gaussian opacity.

grad_threshold

Clone / split threshold on the gradient.

scale_threshold

Split threshold on the scale.

opacity_threshold

Prune threshold on the opacity.

Value

A list with clone, split, prune, n_before and n_after.

References

Kerbl, B. et al. (2023).

Examples

morie_gsplat_density(gradients = c(1e-3, 1e-3, 1e-5), scales = c(0.001, 0.1, 0.05),
                     opacities = c(0.8, 0.7, 0.001))[c("clone", "split", "prune")]
#> $clone
#> [1] 1
#> 
#> $split
#> [1] 2
#> 
#> $prune
#> [1] 3
#>