Skip to contents

Executes high-performance differentiable tile-based forward rasterization of a gaussian_splat object from a specified camera pose, producing an RGB Image object and depth map.

Usage

gs_render(
  splat,
  camera = gs_camera(),
  bg = "black",
  return_depth = TRUE,
  plot = TRUE
)

Arguments

splat

A gaussian_splat object.

camera

A camera list created with gs_camera().

bg

Color of background. Defaults to "black" (or c(0, 0, 0)).

return_depth

Logical. If TRUE, attaches depth map as attribute. Defaults to TRUE.

plot

Logical. If TRUE, displays the rendered image using plot(). Defaults to TRUE.

Value

An Image object with attributes depth and alpha.