zpm: Matrixes of Zernike polynomials

View source: R/zernikes.r

zpmR Documentation

Matrixes of Zernike polynomials

Description

Create a matrix of Zernike polynomial values.

Usage

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())

Arguments

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 makezlist

maxorder

The maximum Zernike polynomial order

nthreads

Number of threads for threaded function call

Details

rho and theta must be the same length.

Value

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.

Note

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.

Author(s)

M.L. Peck mpeck1@ix.netcom.com

See Also

Zernike, makezlist, zlist.fr, fitzernikes, zapm for Annular Zernikes.


mlpeck/zernike documentation built on April 19, 2024, 3:16 p.m.