c_out = ZernikeCoefficient(p,c,r,t)
Computes Zernike coefficients for given Zernike modes when provided with the phase screen and radial coordinates.
Parameters |
Description |
p [matrix] |
Phase screen |
c [vector] |
Zernike modes for which coefficients are to be computed |
r [matrix] |
Radius values |
t [matrix] |
Theta values |
Return Values |
Description |
c_out [vector] |
Zernike coefficients corresponding to each input mode |
>> x = ((1:64)-(64/2+1))*0.01;
>> [y,x] = meshgrid(x,x);
>> rad = sqrt(x.^2+y.^2);
>> theta = atan2(y,x);
>> ApRad = 0.25;
>> mask = (rad<=ApRad);
>> rho = rad./ApRad;
>> z = ZernikePolynomial(5,rho,theta);
>> c = ZernikeCoefficient(z.*mask,[2:11],rho,theta)
Copyright (c) 2009. All rights reserved.
|
What do you think about this topic? Send feedback!
|