API Reference
DeepLens exposes a small, composable API. Every optical system is a lens
model that shares the common Lens interface — psf(),
render(), optimization, and file I/O — and is built on optical
surfaces, light/wave representations, and
image-simulation utilities.
Pick the lens model that matches your optical system:
-
GeoLens
Multi-element refractive lens via differentiable geometric ray tracing. The primary model.
-
HybridLens
Refractive lens plus a diffractive element — hybrid ray-then-wave propagation to the sensor.
-
DiffractiveLens
Pure wave-optics lens built from diffractive surfaces and scalar diffraction.
-
PSFNetLens
Neural surrogate wrapping a
GeoLenswith an MLP for fast, differentiable PSFs. -
DefocusLens
Thin-lens / circle-of-confusion model for fast depth-of-field and bokeh.
Shared building blocks live in Optics Core; neural PSF predictors live in Surrogate Networks.