astra.utils.image#

Image cleaning and background subtraction utilities.

Functions

clean_image(data)

Clean an image by subtracting the background.

Classes

CustomImageClass(data[, header])

Enhanced image processing class with background subtraction and cleaning.

class astra.utils.image.CustomImageClass(data, header=None)[source]#

Bases: Image

Enhanced image processing class with background subtraction and cleaning.

preconstruct_hook() None[source]#

Apply image preprocessing before Donuts star detection.

Performs background subtraction, noise reduction, and systematic correction to improve star detection reliability.

astra.utils.image.clean_image(data: ndarray) ndarray[source]#

Clean an image by subtracting the background.

Parameters:

data (np.ndarray) – The 2D image data.

Returns:

np.ndarray – The background-subtracted image.