Centroid

Notes:

Calculate the centroid and slopes for all apertures:
The structure of the return on the function is a row vector of slopes:
[s_x(0,0),.,s_x(0,N),.,s_x(M,0),.,s_x(M,N),s_y(0,0),.,s_y(0,N),.,s_y(M,0),.,s_y(M,N)]

Centroid calculation using thresholding method.

No. I believe it's the number of pixels in the entire screen. It's a new
and redundant introduction. So I don't really know which one you should use.


On 6 June 2014 18:10, herminarto <notifications@github.com> wrote:

> In src/Centroid/mainCentroid.py:
>
> > +#from Centroid.mainCentroid import *
> > +#from WFR.mainWFR import *
> > +#from Control.mainControl import *
> > +#from DM.mainDM import *
> > +
> > +# Calculate the centroids of an intensity distribution yielded by Shack-Hartmann
> > +# wavefront sensor.
> > +# Given the priory knowledge of the number of lenslet/apertures and the ideal
> > +# spot position.
> > +
> > +def centroid(intensities, paramsSensor):
> > +    # parameters for centroid:
> > +    threshold = 0.1
> > +    # Unwrap paramsSensor
> > +    Nx = paramsSensor['Nx'] # Samples on the x-axis per lenslet
> > +    Ny = paramsSensor['Ny'] # Samples on the y_axis per lenslet
>
> I am confused with the term Nx and Ny. What is it? is it like number of
> pixel (in x and y axis) for each aperture?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/faitdivers/pyao/pull/63/files#r13497320>.
>