Path: SpacecraftEstimation/StarProcessing
% Calculate a histogram of the pixels and fit a Gaussian to the mode. This approximates the sky background. Typically this should exit in 2-3 iterations. -------------------------------------------------------------------------- Form: [b,R,iter] = FitHist( pixels ) -------------------------------------------------------------------------- ------ Inputs ------ pixels (:,:) Pixels ------ Outputs ------ b (2,1) Noise center R (1,1) Standard deviation iter (1,1) Number of iterations in the Newton-Gauss method -------------------------------------------------------------------------- See also Jacobian, histcounts --------------------------------------------------------------------------
Back to the SpacecraftEstimation Module page