CGH Toolbox

A toolbox for Octave to compute the layouts of computer-generated holograms from scalar phase functions describing the optical action of holograms in optical imaging systems. The optical function of a hologram is generally modeled with optical ray-tracing software and it can be encapsulated by a scalar optical phase function $\phi$(x,y). The toolbox converts phase functions into equivalent binary or multi-level holograms. The algorithm used in this toolbox takes advantage of the relationship between the local derivatives of phase functions and the local geometry (curvature) of isophase lines. The isophase-following algorithm is easily extended to phase functions with singularities and discontinuities that occur in some optical applications. A full description of the toolbox algorithms has been published.. The GDSII Toolbox can be used to create hologram layouts suitable for fabrication with direct-write lithography systems. The CGH toolbox also includes a family of functions for the robust and efficient estimation and evaluation of Zernike polynomials, which are widely used in optical applications.

The toolbox can be cloned at: https://github.com/ulfgri/cgh-toolbox