slmsuite.holography.toolbox#
Helper functions for manipulating phase patterns.
Submodules
Repository of common analytic phase patterns. |
Functions
Assigns each vector in |
|
Alias for |
|
Alias for |
|
Helper function for scalar unit conversions. |
|
Helper function for vector unit conversions in the \(k\)-space of the SLM. |
|
Fits three points to an affine transformation. |
|
Validates that an array of 2-dimensional vectors is a |
|
Helper function to format a shape tuple. |
|
Validates that an array of M-dimensional vectors is a |
|
Imprints a region (defined by |
|
Implements Lloyd's Algorithm on a set of seed |
|
Helper function to pad data with zeros. |
|
Helper function to understand unit conversions. |
|
Returns the smallest distance between pairs of points under a given |
|
Returns a copy of a coordinate basis |
|
Helper function to unpad data. |
|
Returns boolean array windows corresponding to the Voronoi cells for a set of vectors. |
|
Find a square that covers the active region of the 2D boolean mask |
|
Parses the slices that describe the window's view into the larger array. |