No BSD License  

Highlights from
Zernike decomposition

4.6

4.6 | 5 ratings Rate this file 34 Downloads (last 30 days) File Size: 1.58 KB File ID: #17950
image thumbnail

Zernike decomposition

by Alex Chtchetinine

 

10 Dec 2007 (Updated 10 Dec 2007)

Decomposition of a 2-D function by set of Zernike functions

| Watch this File

File Information
Description

This code was written to deal with "Zernike polynomials" code graciously donated by Paul Fricker via file exchange.
Here you will find a practical example of a function decomposition by
Zernike basis.
The function is F below, feel free to modify
Unlike Paul's example found in 'zernfun2.m' here the domain is the true unit circle, without NaN's filling it up to the unit square.
You will have to download Paul's functions to run this code.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Zernike polynomials

MATLAB release MATLAB 7.5 (R2007b)
Other requirements Code ID#7687 by Paul Fricker
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
03 Jan 2008 Greg Noder

Thank you, runs smoothly.

19 May 2008 aaaa bbbb

Very well done, thanks!

18 Sep 2008 Xame Earnest

This helps, thanks!

31 Dec 2008 Shalin Mehta

This is a good code for illustrating the idea of Zernike decomposition

13 Nov 2009 Alex Kararg

Any idea if there is a Matlab code for decomposing a 3D shape to Zernike descriptors? Thanks!

16 Jul 2010 Eric

This is an extraordinarily slow way of fitting Zernike coefficients. See "Wavefront fitting with discrete orthogonal polynomials in a unit radius circle" by Malacara, et al, in Optical Engineering, Vol 29, No 6, pages 672-675 for a much more efficient, least-squares approach. You can speed the decomposition up significantly by using linear algebra functions rather than interp2() and dblquad().

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
chemistry Alex Chtchetinine 22 Oct 2008 09:38:40
physics Alex Chtchetinine 22 Oct 2008 09:38:40
zernike functions Alex Chtchetinine 22 Oct 2008 09:38:40
decomposition Alex Chtchetinine 22 Oct 2008 09:38:40
series Alex Chtchetinine 22 Oct 2008 09:38:40
2d orthogonal basis Alex Chtchetinine 22 Oct 2008 09:38:40

Contact us at files@mathworks.com