slmsuite.holography.toolbox.phase.blaze
- blaze(grid, vector=(0, 0), offset=0)[source]
Returns a simple blaze, a linear phase ramp, toward a given vector in \(k\)-space.
\[\phi(\vec{x}) = 2\pi \cdot \vec{k}_{norm} \cdot \vec{x}_{norm} + o\]- Parameters
grid ((array_like, array_like) OR
SLM
) – \(\vec{x}_{norm}\). Meshgrids of normalized \(\frac{x}{\lambda}\) coordinates corresponding to SLM pixels, in(x_grid, y_grid)
form. These are precalculated and stored in anySLM
, so such a class can be passed instead of the grids directly.vector ((float, float)) – \(\vec{k}_{norm}\). Blaze vector in normalized \(\frac{k_x}{k}\) units. See
convert_blaze_vector()
offset – Phase offset for this blaze.
- Returns
The phase for this function.
- Return type
numpy.ndarray