FitStarMoffat:

Path: SpacecraftEstimation/StarProcessing

% Fit a 2D Moffat PSF to a star image

 Calculate a histogram  of the pixels and fit a 2D Moffat. The height of
 the marginal distributions, that is the sum along each coordinate, 
 is related to the height of the circular distribution by 1/sqrt(2*pi).

--------------------------------------------------------------------------
   Form:
   [xfit,sigma,height,iter] = FitStarMoffat( pixels, x0 )
--------------------------------------------------------------------------
   ------
   Inputs
   ------
   pixels (:,:)  Pixels
   x0     (2,1)  Center

   ------
   Outputs
   ------
   xfit   (2,1)  Gaussian center
   rho    (2,1)  Radial parameter
   height (2,1)  Height
   iter          Number of iterations in the Newton-Gauss method

--------------------------------------------------------------------------
   Copyright (c) 2018 Princeton Satellite Systems, Inc.
   All rights reserved.
--------------------------------------------------------------------------
   Since 2018.1
--------------------------------------------------------------------------

Children:

Common: General/DispWithTitle
Math: Analysis/Jacobian

Back to the SpacecraftEstimation Module page