zpm | R Documentation |
Create a matrix of Zernike polynomial values.
zpm(rho, theta, phi= 0 , maxorder = 14, nthreads=parallel::detectCores()/2)
zpmC(rho, theta, maxorder)
zpmCP(rho, theta, maxorder)
zpm.arb(rho, theta, phi = 0, zlist = makezlist())
rho |
A vector of radial coordinates. |
theta |
A vector of angular coordinates, in radians. |
phi |
Orientation of the image, in degrees |
zlist |
A list of indexes, as returned by |
maxorder |
The maximum Zernike polynomial order |
nthreads |
Number of threads for threaded function call |
rho
and theta
must be the same length.
zpm.arb
returns a matrix of size
length(rho)
x length(zlist$n)
with values
of Zernike polynomials
evaluated at the polar coordinates
(rho, theta-pi*phi/180)
.
zpm
, zpmC
, and zpmCP
return a matrix of size
length(rho)
x (maxorder/2+1)^2
of Zernike polynomial values including a piston term.
These are used by various routines to make least squares fits of sets of Zernike polynomials to measured wavefront values.
zpmC
is the C++ routine that does the computations
for zpm
. No column names are returned.
Threaded computation of the matrix is now available using
zpmCP
.
M.L. Peck mpeck1@ix.netcom.com
Zernike
,
makezlist
,
zlist.fr
,
fitzernikes
,
zapm
for Annular Zernikes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.