ContentsIndexReferenceHome
PreviousUpNext
ZernikeCoord
MATLAB
[rho,theta,Mask] = ZernikeCoord(M,[N],[CenRowCol],[rad])
Description

Returns radial and azimuthal coordinate system to use with Zernike polynomial functions. Also returns mask to be applied to coordinate system for the aperture as well as rectangular coordinates. X coordinate is down the rows, Y coordinate is across the columns.

Parameters
Parameters 
Description 
M [scalar] 
Number of rows in output coordinate system 
N [scalar] 
(Optional) Number of columns in output coordinate system. Defaults to M if not specified. 
CenRowCol [vector] 
(Optional) [row col] of center of coordinate system. Defaults to floor(N/2)+1. 
rad [scalar] 
(Optional) Radius output coordinate system (pixels). Defaults to largest circle possible in grid space 
Return Values
Return Values 
Description 
rho [matrix] 
Radius values 
theta [matrix] 
Theta values 
Mask [matrix] 
1/0 of values within circular aperture 
xx [matrix] 
Grid of x-coordinate values 
yy [matrix] 
Grid of y-coordinate values 
See Also
Group
Made with Doc-O-Matic.
Copyright (c) 2009. All rights reserved.
What do you think about this topic? Send feedback!