eloy.psf#
Point Spread Function (PSF) modeling utilities.
This module provides functions for estimating PSF parameters using image moments and fitting 2D Gaussian models to image data.
Attributes#
Functions#
|
Estimate the moments of a 2D distribution. |
|
Fit a 2D Gaussian to the data. |
Module Contents#
- eloy.psf.moments(data)[source]#
Estimate the moments of a 2D distribution.
- Parameters:
data (np.ndarray) – 2D image data.
- Returns:
Dictionary of estimated parameters: amplitude, x, y, sigma_x, sigma_y, background, theta, beta.
- Return type:
dict
- eloy.psf.fit_gaussian(data, init=None)[source]#
Fit a 2D Gaussian to the data.
- Parameters:
data (np.ndarray) – 2D image data.
init (dict or None, optional) – Initial parameter estimates.
- Returns:
Dictionary of fitted parameters: amplitude, x, y, sigma_x, sigma_y, theta, background.
- Return type:
dict