Quick Zernike polynomial creation and decomposition
Updated Fri, 22 Nov 2019 22:28:28 +0000
These functions may be used to quickly generate Zernike polynomials of any radial and azimuthal degree over a circular aperture of any resolution. Additionally, they may be used to perform a quick least-squares fit of any image within a circular aperture using Zernike polynomials, returning the relative coefficients (or "moments", as described by the literature) of each polynomial used in the fit. Many thanks to Chong et. al for proposing a recursive algorithm to calculate the radial portion of the polynomials; it is this algorithm that makes the code as efficient as it is.
Function zernike is used to generate Zernike polynomials.
Functions zernike_moments and zernike_recreation are used to perform a least-squares fit and recreation of an image using Zernike polynomials.
Please read function descriptions for full instructions on their use.
Evan Czako (2022). Quick Zernike polynomial creation and decomposition (https://github.com/EvanCzako/Zernike-Polynomials-MATLAB), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!