Python API Reference

The huira package has two parts.

The modules below are shared: their classes do not depend on how light is binned across the spectrum, and are imported from huira directly.

Core API

Spectral bins, time and intervals, pose contexts, units, rotations and the vector and matrix types.

Core API
Camera API

Distortion coefficients, pixel conventions, and the PSF sampling, focus and FFT options.

Camera API
Image API

The Image class for reading, writing and working with images.

Image API

Everything that carries light, from the scene graph and its handles to the renderer, frame buffer and spectral images, comes in one copy per spectral specialization: a submodule with the same classes and methods, differing only in its spectral bins. Pick the one that matches the imagery you want, for example from huira.rgb import Scene.

RGB

Three bins: red (600-750 nm), green (500-600 nm) and blue (380-500 nm). The usual choice for color imagery.

RGB Spectral Specialization
Visible8

Eight uniform bins across the visible spectrum, 380-750 nm.

Visible8 Spectral Specialization
SWIR8

Eight uniform bins across the short-wave infrared, 900-2500 nm.

SWIR8 Spectral Specialization