fitzernikes: Least Squares fit to Zernike polynomials

View source: R/RcppExports.R

fitzernikesR Documentation

Least Squares fit to Zernike polynomials

Description

Performs a least squares fit of a specified set of Zernike polynomials to a vector of wavefront measurements.

Usage

fitzernikes(wf, rho, theta, eps=0, phi = 0, maxorder = 14, 
            nthreads = -1, isoseq = FALSE,
            usecirc = FALSE, ext_prec = FALSE)

Arguments

wf

A vector of wavefront values

rho

A vector of radial coordinates.

theta

A vector of angular coordinates, in radians.

eps

Obstruction fraction of annular aperture.

phi

Orientation of the image, in degrees

maxorder

Maximum Zernike polynomial order

nthreads

# threads for threaded function calls

isoseq

Boolean: use ISO/ANSI sequencing

usecirc

Boolean: Use circle Zernikes even if eps > 0?

ext_prec

Boolean: Use extended precision arithmetic for annular Zernike computation?

Details

wf, rho, and theta must be the same length.

As of version 3.7.0 Zernike polynomials in ISO/ANSI sequence can be used through a call to zpm_cart.

Value

The coefficients of the least squares fit.

Note

With the standard ordering of Zernikes Z0 is the piston term, Z1 and Z2 are x and y tilts, Z3 is defocus, etc.

Author(s)

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

See Also

zpm, zpm_cart, zapm, zapm_iso, psifit, fftfit, vortexfit, wf_net.


mlpeck/zernike documentation built on Dec. 29, 2024, 7:41 p.m.