pymf.filter_map_mf

pymf.filter_map_mf(image, source, noise_map=None, sigma_noise=None)

Computes and applies a matched filter to a given map. The filter is build from a provided source template and the power spectrum of the map.

Parameters:
image: 2D float array

Input image.

source: 2D float array

Source template. Needs to have identical dimensions as the provided image.

noise_map: 2D float array, optional

The provided noise map will be used to compute noise power spectrum. Otherwise the noise power spectrum is directly computed from the image. Default: None

sigma_noise: float, optional

Standard deviation of the map noise. Does allow analytic computation of the noise power spectrum. Useful for tests with white noise. Default: None

Returns:
filtered_image: 2D float array

Image convolved with the computed matched filter.

filter_ft: 2D float array

2D window function of the matched filter.

noise: float

Noise level of the filtered map.