slmsuite.holography.toolbox.phase.blaze#

blaze(grid, vector=(0, 0))[source]#

Returns a simple blazed grating, a linear phase ramp, toward a given vector in \(k\)-space.

\[\phi(\vec{x}) = 2\pi \cdot \vec{k} \cdot \vec{x}\]
Parameters:
  • grid (Union[Tuple[ndarray, ndarray], object]) – \(\vec{x}\). Meshgrids of normalized \(\frac{x}{\lambda}\) coordinates corresponding to SLM pixels, in (x_grid, y_grid) form. These are precalculated and stored in any SLM, so such a class can be passed instead of the grids directly.

  • vector (Tuple[float, float]) – \(\vec{k}\). Blaze vector in normalized \(\frac{k_x}{k}\) units. See convert_vector(). If a 3-dimensional vector is passed, a normalized focusing term is added.

Returns:

The phase for this function.