Inferensys

Glossary

Ray Space

Ray space is a multi-dimensional parameterization used to represent light fields, where each ray of light is described by its intersection with parameterized surfaces.
Developer demonstrating multi-agent tool use, agent tool selection interface on laptop, casual tech demo moment.
PLENOPTIC FUNCTION MODELING

What is Ray Space?

Ray space is a foundational mathematical framework for representing light fields, which are complete descriptions of light flowing through a scene.

Ray space is a multi-dimensional coordinate system used to parameterize the plenoptic function, where every ray of light in a scene is uniquely identified by its intersections with two or more parameterized surfaces, such as parallel planes. This abstraction transforms the complex, continuous flow of light into a discrete, tractable dataset for computational processing. It is the core representation underlying light field capture, view synthesis, and advanced neural rendering techniques like Neural Radiance Fields (NeRF).

The most common parameterization uses two parallel planes, defining a 4D function L(u, v, s, t) where (u,v) and (s,t) are coordinates on each plane. This structure directly enables operations like digital refocusing and parallax-based novel view generation. The density of samples in this space dictates the spatial-angular tradeoff, a fundamental limit in light field photography. Efficiently navigating and processing this high-dimensional data is essential for image-based rendering and creating immersive spatial computing experiences.

FOUNDATIONAL MODELS

Key Ray Space Parameterizations

Ray space is a multi-dimensional coordinate system used to represent the complete set of light rays in a scene. Different parameterizations trade off mathematical convenience, acquisition practicality, and rendering efficiency for specific applications in light field imaging and neural rendering.

01

Two-Plane Parameterization (2PP)

The Two-Plane Parameterization (2PP), formalized by Levoy and Hanrahan, is the most prevalent model for light fields. It represents each ray by its intersection coordinates (u, v) on a first plane and (s, t) on a second, parallel plane. This creates a natural 4D function L(u, v, s, t) where (u, v) defines a spatial location and (s, t) defines an angular direction.

  • Core Concept: The ray passes through point (u, v) on the UV (camera) plane and point (s, t) on the ST (focal) plane.
  • Rendering: Novel views are generated by extracting the appropriate 2D slice (s, t) for each pixel, effectively re-sorting captured rays.
  • Applications: Forms the basis for the Lumigraph and is the standard model for most light field camera designs and research datasets.
02

Sphere Parameterization

The Sphere Parameterization describes a ray by its point of origin on a sphere and its direction vector. This is often represented as L(θ, φ, Θ, Φ), where (θ, φ) are spherical coordinates for the origin and (Θ, Φ) for the direction.

  • Core Concept: Ideal for capturing full spherical light fields, such as those needed for immersive 360° environments or for scenes observed from the interior of a bounding sphere.
  • Mathematical Utility: Aligns naturally with spherical harmonics and other frequency-domain analyses of the plenoptic function.
  • Challenge: Dense, uniform sampling on a sphere is non-trivial, and storage can be high-dimensional. It is often used in theoretical analysis and for synthetic datasets in global illumination.
03

Surface Light Field

A Surface Light Field parameterizes rays based on their interaction with the explicit geometry of an object. Each ray is defined by a point x on the object's surface and an outgoing direction ω (typically in a local spherical coordinate system). The function is L(x, ω).

  • Core Concept: Attaches the radiance function directly to an object's mesh or texture atlas. It separates view-dependent appearance (specular highlights, reflections) from base geometry.
  • Efficiency: Highly compact for objects, as it only stores rays emanating from the surface, not all rays in space.
  • Applications: Foundational for image-based rendering of real-world objects (e.g., the classic Unstructured Lumigraph) and a precursor to modern neural appearance models like Neural Radiance Fields (NeRF) which use a similar position-direction input.
04

Point & Direction (Ray Origin-Direction)

The most fundamental parameterization represents a ray by its origin point o = (ox, oy, oz) in 3D space and its normalized direction vector d = (dx, dy, dz). This is the canonical form used in ray tracing and by coordinate-based neural networks like NeRF.

  • Core Concept: Directly maps to the physical definition of a ray: r(t) = o + t * d, where t is the distance along the ray.
  • Neural Rendering: This is the exact input format for a NeRF model: a multi-layer perceptron F(o, d) -> (c, σ) maps a 3D point and viewing direction to a color and volume density.
  • Flexibility: Unconstrained by predefined planes or surfaces, making it ideal for volumetric scene representations. However, it lacks the structured, matrix-like organization of 2PP, making raw acquisition and certain processing operations more complex.
05

Epipolar Plane Image (EPI) Analysis

An Epipolar Plane Image (EPI) is not a separate parameterization but a powerful 2D slice and analytical tool derived from the 4D light field (typically under 2PP). By fixing one spatial dimension (e.g., v) and one angular dimension (e.g., t), you obtain a 2D image E(u, s).

  • Core Concept: In this (u, s) slice, a scene point appears as a straight line. The slope of this line is inversely proportional to the depth of the corresponding 3D point.
  • Primary Use: Enables highly efficient depth estimation and view interpolation through simple linear analysis in the EPI domain, without full 3D reconstruction.
  • Visualization: EPIs provide an intuitive way to visualize the structure of a light field, where depth manifests as linear features, and occlusions create line discontinuities.
06

Concentric Mosaics

Concentric Mosaics represent a ray space captured by a camera moving along a circular path at a constant radius, typically pointing outward. Rays are parameterized by the camera's rotation angle θ, the vertical height v, and a horizontal pixel coordinate u on the camera's sensor.

  • Core Concept: A 3D subset of the full 4D light field (L(θ, v, u)), designed for efficient rendering of panoramic scenes from a fixed viewpoint but with full horizontal parallax.
  • Acquisition: Easier to capture than a full 4D light field, requiring only a simple camera rig on a circular rail.
  • Rendering: Novel views within the circle are rendered by combining appropriate columns from different captured images, allowing a user to "look around" a central point. This was a key technique in early image-based rendering systems.
PLENOPTIC FUNCTION MODELING

How Ray Space Parameterization Works

Ray space is the foundational mathematical framework for representing light fields, enabling the computational capture and synthesis of complex visual scenes.

Ray space parameterization is a multi-dimensional coordinate system used to uniquely represent every light ray in a scene. It typically models rays by their intersections with two parameterized surfaces, such as parallel planes, creating a 4D function L(u, v, s, t) where (u,v) and (s,t) are spatial and angular coordinates. This structured representation transforms the continuous plenoptic function into a discrete, computable light field, enabling algorithms for view synthesis and refocusing.

The power of this parameterization lies in its ability to treat the complete set of visual rays as a sampled signal. The plenoptic sampling theorem defines the required density of these samples to avoid aliasing, governed by a fundamental spatial-angular tradeoff. In practice, devices like light field cameras use a microlens array to capture this 4D data, from which sub-aperture images and epipolar plane images can be extracted for depth estimation and novel view generation.

COMPUTATIONAL PHOTOGRAPHY & COMPUTER VISION

Primary Applications of Ray Space

Ray space provides a powerful mathematical framework for representing the full light field. Its structured parameterization enables a suite of advanced computational imaging and rendering techniques.

01

Digital Refocusing

Ray space enables post-capture refocusing by synthetically shifting the integration plane for rays. After capturing a light field, the focal plane can be adjusted without any physical camera movement.

  • Mechanism: Rays are re-integrated from the sensor to a virtual sensor plane at a different depth.
  • Key Benefit: Enables 'focus after capture' for photography and computational microscopy.
  • Example Tool: Lytro's first consumer light field camera demonstrated this capability.
02

Parallax-Based View Synthesis

By sampling rays from different angular coordinates, ray space allows the generation of novel viewpoints with correct parallax effects. This is the foundation for creating immersive 3D content and virtual camera walks.

  • Core Process: Interpolating or extrapolating rays to render images from camera positions not physically captured.
  • Applications: Free-viewpoint video, virtual reality content creation, and cinematic post-production.
  • Constraint: Requires dense angular sampling to avoid artifacts like 'cardboarding'.
03

Depth Estimation & 3D Reconstruction

The slope of lines in Epipolar Plane Images (EPIs)—slices of ray space—directly encodes scene depth. Analyzing these linear structures provides highly accurate depth maps without active sensors.

  • EPI Analysis: A point in 3D space manifests as a line in an EPI; the line's slope is inversely proportional to depth.
  • Advantage: Provides dense, per-pixel depth estimation from passive capture.
  • Use Case: Generating 3D models for digital twins, autonomous vehicle perception, and robotics.
04

Glare & Reflection Reduction

Ray space allows for the angular filtering of light rays. By identifying and separating rays based on their direction of arrival, it is possible to computationally remove unwanted optical effects.

  • Principle: Specular reflections and lens glare often occupy distinct angular regions compared to diffuse scene radiance.
  • Process: Applying angular masks or filters in ray space to suppress rays from problematic directions.
  • Impact: Improves image quality in computational photography and machine vision systems.
05

High Dynamic Range (HDR) Imaging

Ray space facilitates HDR capture from a single exposure. Different angular samples (sub-aperture images) can have varying effective exposures due to vignetting or lenslet design.

  • Method: Merging these variably exposed samples reconstructs a scene with a wider dynamic range.
  • Benefit: Mitigates motion blur artifacts common in multi-exposure HDR techniques.
  • Application: Automotive imaging systems that must handle high-contrast roadside scenes.
06

Autostereoscopic 3D Displays

Ray space is the native representation for light field displays. These displays emit a dense set of rays to different viewing positions, creating a 3D image viewable without glasses.

  • Display Synthesis: The display hardware (e.g., lenslet arrays, layered LCDs) is designed to reconstruct a targeted ray space.
  • Challenge: Requires extremely high spatial resolution to accommodate both spatial and angular dimensions.
  • Future Direction: Enabling collaborative 3D visualization for design, medicine, and telepresence.
RAY SPACE

Frequently Asked Questions

Ray space is a foundational mathematical framework for representing light fields. This FAQ addresses its core principles, applications, and relationship to modern neural rendering techniques.

Ray space is a multi-dimensional coordinate system used to parameterize the plenoptic function, where every ray of light in a scene is uniquely identified by its intersection points with two or more parameterized surfaces, such as parallel planes. It provides a structured, discrete representation of a light field—the complete set of light rays flowing through a region of space. This parameterization transforms the continuous flow of light into a data structure that can be captured, stored, and algorithmically processed for tasks like view synthesis and digital refocusing. The most common 4D parameterization uses coordinates (u, v, s, t), where (u,v) and (s,t) represent intersection points on two parallel planes, effectively describing a ray's position and direction.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.