ContentsIndexReferenceHome
PreviousUpNext
ZernikeReconstruct
MATLAB
img_out = ZernikeReconstruct(orders,coeffs,r,t)
Description

Produces phase screen given Zernike orders to be used and their corresponding magnitudes (coefficients)

Parameters
Parameters 
Description 
orders [vector] 
Zernike orders for which reconstruction is to be computed 
coeffs [vector] 
Coefficients for magnitude of Zernike orders 
r [matrix] 
Radius values 
t [matrix] 
Theta values 
Return Values
Return Values 
Description 
img_out [matrix] 
Reconstructed image 
Examples

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

>> p = ZernikeReconstruct([2;5;9],[1,5,10],rho,theta);

See Also
Group
Made with Doc-O-Matic.
Copyright (c) 2009. All rights reserved.
What do you think about this topic? Send feedback!